<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by SuneBear on Medium]]></title>
        <description><![CDATA[Stories by SuneBear on Medium]]></description>
        <link>https://medium.com/@HiSuneBear?source=rss-d9ea705f6dda------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*oy7nbQxHtVREVqJU.jpg</url>
            <title>Stories by SuneBear on Medium</title>
            <link>https://medium.com/@HiSuneBear?source=rss-d9ea705f6dda------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 17:41:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@HiSuneBear/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Teambition UIKit Refactoring Plan]]></title>
            <link>https://medium.com/@HiSuneBear/teambition-uikit-refactoring-plan-d002d5b6fc63?source=rss-d9ea705f6dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/d002d5b6fc63</guid>
            <category><![CDATA[uikit]]></category>
            <category><![CDATA[teambition]]></category>
            <dc:creator><![CDATA[SuneBear]]></dc:creator>
            <pubDate>Tue, 16 Feb 2016 08:31:28 GMT</pubDate>
            <atom:updated>2016-02-16T08:46:43.615Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why Refactoring</h4><p>因为 TB 整个要重构，等这一天很久了 : )<br>个人觉得现在的 UI 组件化做得还不错，就是缺少文档说明<br>所以这次重构主要是做整理与规范，让设计更统一，新来的同事快速上手<br>最后产出的 Guidelines 希望可以被「前端工程师」与「设计师」用起来</p><h4>Involved Members</h4><p>S&amp;B Team 负责完成重构任务，用两周时间</p><ul><li>Sune: 写 TB-UI V2 与 Development 文档，转换 Less -&gt; Stylus</li><li>Bin: 写 Style Guides 文档</li><li>S&amp;B: 讨论如何拆分 UIKit，文档的结构和内容</li></ul><h4>The more excellent CSS preprocessor: Stylus</h4><p>自从 Bootstrap V4 改用 SASS 后再也找不到用 Less 的理由了<br>TB 要引入 ET-Template，肯定会慢慢弱化 jQuery 的存在<br>等到 ES6 语法的 UI 生态成熟，就可以完全摆脱 BS<br><br>Stylus 的语法很灵活，而且可以不写分号与括号<br>跟 Less 比有更强大的逻辑判断与函数功能，还有通配引入文件<br>除了舒适的语法，还有 PostCSS 来代替取代难以记住的 Mixin<br>有神来之笔的助阵，一画又一画</p><h4>The pithy and elegant architecture: TB-UI V2</h4><p>TB-UI V2 的组成：</p><ol><li>BS V3 (Stylus) 历史包袱</li><li>SMACSS&amp;OOCSS 模式 + CSS Style Guides 规范</li><li>Base&amp;Generics&amp;Miscs Style 基础样式</li><li>Color Palette</li><li>Icon Fonts</li><li>UI Libs</li><li>Common Components</li><li>Guidelines 偏向设计一些</li></ol><p>这样拆分的目的是减小框架体积，先把精力侧重在优雅的架构上<br>后面再完善各个部分，以循序渐进的方式，一定不能太赶（拒绝加班～</p><h4>Documentation: Style Guides</h4><p>这一块主要由 Bin 来负责，我来负责鼓励 Bin</p><p>先列一下 Guide Contents:</p><ul><li><strong>Intro</strong></li><li>Brand Identity</li><li>Basic Principles</li><li><strong>Basics</strong></li><li>Brand / Logo</li><li>Colors</li><li>Typography</li><li>Icons</li><li>Grid</li><li><strong>Visual Language</strong></li><li>Photography</li><li>Illustrations</li><li>Video</li><li>Charts</li><li><strong>Other</strong></li><li>Ads</li><li>Social Media</li><li>Merchandising</li></ul><h4>Stumbling Blocks</h4><p>这次 UI 重构不涉及 JavaScript, 所以少了超级多麻烦</p><p>但还是会有一些问题：</p><ul><li>第三方依赖的样式为 Less, 所以得先保留 BS-LESS 与 Gulp-less，最后再把两个 CSS 文件合并</li><li>在转换 Less 到 Stylus 的时候肯定会报特别多错，需要对特殊的样式进行手动修改</li><li>怎么才能让文档对「前端工程师」与「设计师」都友好，让 Development 与 Style Guide 完美融合</li></ul><p>Anyway，这是一次智慧与体力的结合，一起加油吧 : )</p><p>P.S. 这篇文章用词紊乱，并太过于口语化，请不要太仔细阅读～</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d002d5b6fc63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Temp$$]]></title>
            <link>https://medium.com/@HiSuneBear/temp-cb71399f0062?source=rss-d9ea705f6dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb71399f0062</guid>
            <category><![CDATA[hello-world]]></category>
            <dc:creator><![CDATA[SuneBear]]></dc:creator>
            <pubDate>Mon, 11 Jan 2016 08:07:06 GMT</pubDate>
            <atom:updated>2016-02-16T08:38:19.507Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb71399f0062" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>