Skip to content

Commit 13d3a18

Browse files
authored
Merge pull request #596 from dev-five-git/fix-e2e
Fix shadow issue
2 parents 32eb8d8 + cb4dfe3 commit 13d3a18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1666
-413
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"bindings/devup-ui-wasm/package.json":"Patch"},"note":"Support variable","date":"2026-04-01T07:11:17.490320600Z"}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ storybook-static
2020
.sisyphus
2121
test-results
2222
playwright-report
23+
.omc

AGENTS.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ devup-ui/
3636
| Add CSS property | `libs/css/src/constant.rs` | Property mappings |
3737
| Add pseudo selector | `packages/react/src/types/props/selector/` | TypeScript types |
3838
| Modify extraction | `libs/extractor/src/lib.rs` | Core logic + tests |
39-
| Theme system | `libs/sheet/src/theme.rs` | Color/typography |
39+
| Theme system | `libs/sheet/src/theme.rs` | Color/typography/length/shadow |
4040
| Plugin behavior | `packages/*-plugin/src/plugin.ts` | All follow same pattern |
4141
| Component API | `packages/react/src/components/` | Box, Flex, Text... |
4242
| WASM exports | `bindings/devup-ui-wasm/src/lib.rs` | JS-exposed functions |
@@ -49,7 +49,7 @@ devup-ui/
4949
|--------|------|-------|------|
5050
| extractor | `lib.rs` | 9,094 | Main extraction + tests |
5151
| sheet | `lib.rs` | 1,821 | CSS output generation |
52-
| theme | `theme.rs` | 1,526 | Color/typography system |
52+
| theme | `theme.rs` | 1,526 | Color/typography/length/shadow system |
5353
| css_utils | `css_utils.rs` | 1,239 | Template literal parsing |
5454
| visit | `visit.rs` | 669 | AST visitor pattern |
5555

@@ -105,11 +105,19 @@ All React components throw `Error('Cannot run on the runtime')` - they're compil
105105
{
106106
"theme": {
107107
"colors": { "default": {...}, "dark": {...} },
108-
"typography": { "heading": {...} }
108+
"typography": { "heading": {...} },
109+
"length": { "default": { "containerX": ["1px", null, "2px"] } },
110+
"shadow": { "default": { "card": ["0 1px 2px #0003", null, null, "0 4px 8px #0003"] } }
109111
}
110112
}
111113
```
112114

115+
### Length & Shadow Tokens
116+
- Defined responsively like typography (arrays with `null` for skipped breakpoints)
117+
- Used with `$` prefix: `<Box w="$containerX" />`, `<Box boxShadow="$card" />`
118+
- `"$token"` and `{"$token"}` both expand to multiple breakpoint classes
119+
- `{["$token"]}` inside a responsive array stays single class (array defines breakpoints)
120+
113121
### Plugin Pattern
114122
All plugins wrap bundler config:
115123
```ts

0 commit comments

Comments
 (0)