Skip to content

Commit

Permalink
Add form design tokens rijkshuisstijl (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeesoPost authored Oct 3, 2023
1 parent 6b64c06 commit a6ecfcf
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"utrecht": {
"form-control": {
"background-color": {},
"block-size": {},
"border-color": {},
"border-radius": {},
"border-width": {},
"color": {},
"font-family": {},
"font-size": {},
"line-height": {},
"min-block-size": {},
"padding-block-end": {},
"padding-block-start": {},
"padding-inline-end": {},
"padding-inline-start": {},
"max-inline-size": { "value": "320px" },
"placeholder": {
"color": {}
},
"focus": {
"border-color": {}
},
"disabled": {
"background-color": {},
"color": {}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"utrecht": {
"form-field-error-message": {
"color": { "value": "{basiselementen.color.zwart}" },
"background-color": { "value": "{basiselementen.color.rood-tint2}" },
"padding-inline-start": { "value": "16px" },
"padding-inline-end": { "value": "16px" },
"padding-block-start": { "value": "16px" },
"padding-block-end": { "value": "16px" },
"font-family": {},
"font-size": {},
"font-weight": {},
"margin-block-start": {},
"margin-block-end": {}
}
}
}
12 changes: 6 additions & 6 deletions proprietary/digid-design-tokens/token-transformer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { tokenTransformer } from "../logius-design-tokens/src/token-transformer.
import { resolve } from "node:path";

tokenTransformer({
input: new URL(
"../logius-design-tokens/src/figma.tokens.json",
import.meta.url,
).pathname,
output: new URL("./tmp/figma.tokens.json", import.meta.url).pathname,
themes: ["DigiD"],
input: new URL(
"../logius-design-tokens/src/figma.tokens.json",
import.meta.url,
).pathname,
output: new URL("./tmp/figma.tokens.json", import.meta.url).pathname,
themes: ["DigiD"],
});
6 changes: 3 additions & 3 deletions proprietary/logius-design-tokens/token-transformer.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { tokenTransformer } from "./src/token-transformer.mjs";

tokenTransformer({
input: new URL("./src/figma.tokens.json", import.meta.url).pathname,
output: new URL("./tmp/figma.tokens.json", import.meta.url).pathname,
themes: ["Logius"],
input: new URL("./src/figma.tokens.json", import.meta.url).pathname,
output: new URL("./tmp/figma.tokens.json", import.meta.url).pathname,
themes: ["Logius"],
});
12 changes: 6 additions & 6 deletions proprietary/mijnoverheid-design-tokens/token-transformer.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { tokenTransformer } from "../logius-design-tokens/src/token-transformer.mjs";

tokenTransformer({
input: new URL(
"../logius-design-tokens/src/figma.tokens.json",
import.meta.url,
).pathname,
output: new URL("./tmp/figma.tokens.json", import.meta.url).pathname,
themes: ["MijnOverheid"],
input: new URL(
"../logius-design-tokens/src/figma.tokens.json",
import.meta.url,
).pathname,
output: new URL("./tmp/figma.tokens.json", import.meta.url).pathname,
themes: ["MijnOverheid"],
});

0 comments on commit a6ecfcf

Please sign in to comment.