Skip to content

Commit 41bff15

Browse files
authored
feat: conditions and variables access (#9)
1 parent ebec8fc commit 41bff15

22 files changed

+1986
-256
lines changed

.changeset/yellow-glasses-tie.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@hebilicious/cssforge": minor
3+
---
4+
5+
# Conditions and variables access
6+
7+
Add the posibility to add conditions for colors modules. This is a breaking change for the
8+
configuration format.

.github/workflows/ci.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,16 @@ jobs:
3434

3535
- name: Publish dry run
3636
run: deno publish --dry-run
37+
38+
test:
39+
runs-on: ubuntu-latest
40+
41+
steps:
42+
- uses: actions/checkout@v4
43+
44+
- uses: denoland/setup-deno@v2
45+
with:
46+
deno-version: v2.x
47+
48+
- name: Run tests
49+
run: deno test -A

AGENTS.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Css Forge Library
2+
3+
This is a library for generating CSS variables from design tokens. This library uses Deno
4+
and TypeScript.
5+
6+
## Creating new features and modules
7+
8+
Make sure to follow the established conventions for modules in `src/modules`. Make sure to
9+
add tests following the pattern in the `tests` folder.
10+
11+
## Dependencies
12+
13+
Ask permissions before adding new dependencies. Always prefer using features from the
14+
standard library or writing code from first principles.
15+
16+
## Updating the README.md
17+
18+
To update the README, use the `deno task readme:update` command. There is a special syntax
19+
in the README that generates the codeblocks. For a comment like this:
20+
21+
<comment>
22+
<!-- md:generate defineConfig
23+
export default defineConfig({
24+
spacing: {
25+
fluid: {
26+
base: {
27+
value: {
28+
minSize: 4,
29+
maxSize: 24,
30+
minWidth: 320,
31+
maxWidth: 1280,
32+
negativeSteps: [0],
33+
positiveSteps: [3],
34+
prefix: "hi",
35+
},
36+
},
37+
},
38+
},
39+
});
40+
-->
41+
</comment>
42+
43+
It will generate a codeblock below. Therefore, these comments are the source of truth and
44+
should never be deleted. But they should be updated if the source code changes.

0 commit comments

Comments
 (0)