Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/yellow-glasses-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@hebilicious/cssforge": minor
---

# Conditions and variables access

Add the posibility to add conditions for colors modules. This is a breaking change for the
configuration format.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,16 @@ jobs:

- name: Publish dry run
run: deno publish --dry-run

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- name: Run tests
run: deno test -A
44 changes: 44 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Css Forge Library

This is a library for generating CSS variables from design tokens. This library uses Deno
and TypeScript.

## Creating new features and modules

Make sure to follow the established conventions for modules in `src/modules`. Make sure to
add tests following the pattern in the `tests` folder.

## Dependencies

Ask permissions before adding new dependencies. Always prefer using features from the
standard library or writing code from first principles.

## Updating the README.md

To update the README, use the `deno task readme:update` command. There is a special syntax
in the README that generates the codeblocks. For a comment like this:

<comment>
<!-- md:generate defineConfig
export default defineConfig({
spacing: {
fluid: {
base: {
value: {
minSize: 4,
maxSize: 24,
minWidth: 320,
maxWidth: 1280,
negativeSteps: [0],
positiveSteps: [3],
prefix: "hi",
},
},
},
},
});
-->
</comment>

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.
Loading
Loading