|
1 | 1 | <div className="sb-unstyled cdr-prose c1-story-pad-24 c1-story-max-640"> |
2 | 2 |
|
3 | | -## Cedar One |
| 3 | +<h1 className="cdr-not-prose cdr-title">Cedar One</h1> |
4 | 4 |
|
5 | | -This Storybook is the baseline catalog for Cedar One: plain HTML and static CSS. |
6 | | -It anchors visual parity with `rei-cedar` while keeping the system portable and light. |
| 5 | +Cedar One provides a framework-agnostic, CSS-first foundation for <a className="cdr-link" href="http://cedar.rei.com">Cedar</a>. |
| 6 | +Tokens define design intent. Components ship as native HTML and static CSS, with behavior added only when needed. |
7 | 7 |
|
8 | | -### A CSS-first component system |
9 | | - |
10 | | -Cedar One reimagines <a className="cdr-link" href="http://cedar.rei.com">Cedar</a> as a framework-agnostic, CSS-first component system. |
| 8 | +<div className="cdr-not-prose c1-story-my-48" /> |
11 | 9 |
|
12 | | -Tokens define design intent. Styles resolve to native HTML and static CSS. Behavior is added only where parity and accessibility require it. |
| 10 | +### A CSS-first component system |
13 | 11 |
|
14 | 12 | ```html |
15 | 13 | <button class="cdr-button cdr-button--primary" type="button"> |
16 | 14 | Add to cart |
17 | 15 | </button> |
18 | 16 | ``` |
19 | 17 |
|
20 | | -Renders this: |
| 18 | +<div className="c1-story-mt-16" /> |
21 | 19 |
|
22 | | -<div className="c1-story-flex c1-story-justify-start"> |
23 | | - <button type="button" className="cdr-button cdr-button--primary"> |
24 | | - {`Add to cart`} |
25 | | - </button> |
26 | | -</div> |
| 20 | +Renders this: <button type="button" className="cdr-button cdr-button--primary">{`Add to cart`}</button> |
27 | 21 |
|
28 | 22 | No runtime JavaScript required. |
29 | 23 |
|
30 | | -<hr className="cdr-not-prose c1-story-my-48" /> |
| 24 | +<div className="cdr-not-prose c1-story-my-48" /> |
31 | 25 |
|
32 | 26 | ### Contracts, enforced before runtime |
33 | 27 |
|
@@ -111,7 +105,7 @@ Result: |
111 | 105 | alt="Example ESLint error showing an unknown Cedar One class modifier." |
112 | 106 | /> |
113 | 107 |
|
114 | | -<hr className="cdr-not-prose c1-story-my-48" /> |
| 108 | +<div className="cdr-not-prose c1-story-my-48" /> |
115 | 109 |
|
116 | 110 | ### Adapters at the edges |
117 | 111 |
|
@@ -140,7 +134,7 @@ import { useAccordionAdapter } from '@rei/c1-ui/adapters/accordion/vue'; |
140 | 134 | useAccordionAdapter({ refs, state }); |
141 | 135 | ``` |
142 | 136 |
|
143 | | -<hr className="cdr-not-prose c1-story-my-48" /> |
| 137 | +<div className="cdr-not-prose c1-story-my-48" /> |
144 | 138 |
|
145 | 139 | ### Design principles |
146 | 140 |
|
|
0 commit comments