Skip to content

Commit

Permalink
chore: package.json and readme.md updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jonambas committed Apr 8, 2024
1 parent 3c2b36a commit 93f7efb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ Which will produce:
<!-- With ct -->
<div class="d_flex bg_red.500" />

<!-- With component-level tokens in semanticToken -->
<!-- With Panda's semanticTokens -->
<div class="d_flex bg_alert.background" />
```

```css
/* With ct */
--colors-red-500: #ef4444;

/* With component-level tokens in semanticToken */
/* With Panda's semanticTokens */
--colors-alert-background: var(--colors-red-500);

.d_flex {
Expand All @@ -60,7 +60,7 @@ Which will produce:
background: var(--colors-red-500);
}

/* With component-level tokens in semanticToken */
/* With Panda's semanticTokens */
.bg_alert\.background {
background: var(--colors-alert-background);
}
Expand All @@ -70,7 +70,7 @@ Which will produce:

### Supported Syntax

This plugin supports aliasing to Panda's object syntax via a `value` key, just as you would define styles with conditions in Panda's theme.
This plugin supports aliasing to Panda's object syntax via a `value` key, just as you would define semantic tokens in Panda's theme.

```ts
export default defineConfig({
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
{
"name": "panda-plugin-ct",
"version": "0.0.7",
"description": "",
"description": "A Panda CSS plugin for alias design tokens",
"author": "Jon Ambas <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/jonambas/panda-plugin-ct.git"
},
"bugs": {
"url": "https://github.com/jonambas/panda-plugin-ct/issues"
},
"homepage": "https://github.com/jonambas/panda-plugin-ct",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
Expand Down Expand Up @@ -29,8 +39,6 @@
"test": "vitest",
"test:ci": "vitest run --coverage --reporter=basic"
},
"author": "Jon Ambas <[email protected]>",
"license": "MIT",
"dependencies": {
"ts-morph": "22.0.0"
},
Expand Down

0 comments on commit 93f7efb

Please sign in to comment.