Skip to content

Commit

Permalink
refactor(meta-css): update color var templates
Browse files Browse the repository at this point in the history
- update color(), bg-color(), border-color(), fill(), stroke()
  - now accepting full var name as arg, rather than just an index
  • Loading branch information
postspectacular committed Mar 17, 2024
1 parent b49860e commit 5f08683
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/meta-css/specs/colors.mcss.json
Expand Up @@ -12,12 +12,12 @@
"moon-gray": "#ccc",
"light-gray": "#eee",
"near-white": "#f4f4f4",
"white": "#fff",
"transparent": "transparent"
"white": "#fff"
},
"__palette_comment": "Tachyons CSS colors",
"palette": {
"current": "currentColor",
"current": "currentcolor",
"transparent": "transparent",
"dark-red": "#e7040f",
"red": "#ff4136",
"light-red": "#ff725c",
Expand Down Expand Up @@ -122,26 +122,26 @@
{
"doc": {
"group": "border color",
"args": ["index: color variable index"]
"args": ["name: variable name (without `--` prefix)"]
},
"name": "border-color",
"props": { "border-color": "var(--color{0})" }
"props": { "border-color": "var(--{0})" }
},
{
"doc": {
"group": "colors",
"args": ["index: color variable index"]
"args": ["name: variable name (without `--` prefix)"]
},
"name": "color",
"props": { "color": "var(--color{0})" }
"props": { "color": "var(--{0})" }
},
{
"doc": {
"group": "colors",
"args": ["index: color variable index"]
"args": ["name: variable name (without `--` prefix)"]
},
"name": "bg-color",
"props": { "background-color": "var(--color{0})" }
"props": { "background-color": "var(--{0})" }
},
{
"doc": {
Expand Down

0 comments on commit 5f08683

Please sign in to comment.