Skip to content

Commit 9261729

Browse files
committed
feat: conditions and variables access
1 parent ebec8fc commit 9261729

22 files changed

+2081
-359
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.
8+
This is a breaking change for the 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.
4+
This library uses Deno and TypeScript.
5+
6+
## Creating new features and modules
7+
8+
Make sure to follow the established conventions for modules in `src/modules`.
9+
Make sure to add tests following the pattern in the `tests` folder.
10+
11+
## Dependencies
12+
13+
Ask permissions before adding new dependencies.
14+
Always prefer using features from the 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.
19+
There is a special syntax in the README that generates the codeblocks.
20+
For a comment like this:
21+
22+
<comment>
23+
<!-- md:generate defineConfig
24+
export default defineConfig({
25+
spacing: {
26+
fluid: {
27+
base: {
28+
value: {
29+
minSize: 4,
30+
maxSize: 24,
31+
minWidth: 320,
32+
maxWidth: 1280,
33+
negativeSteps: [0],
34+
positiveSteps: [3],
35+
prefix: "hi",
36+
},
37+
},
38+
},
39+
},
40+
});
41+
-->
42+
</comment>
43+
44+
It will generate a codeblock below. Therefore, these comments are the source of truth and should never be deleted. But they should be updated if the source code changes.

0 commit comments

Comments
 (0)