Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added Tubbergen theme #4

Merged
merged 1 commit into from
Sep 14, 2023
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
3 changes: 3 additions & 0 deletions packages/storybook/config/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ import '@nl-design-system-unstable/rotterdam-design-tokens/src/custom.scss';
// import '@nl-design-system-unstable/rotterdam-design-tokens/src/font.scss';
import '@nl-design-system-unstable/stedebroec-design-tokens/dist/index.css';
import '@nl-design-system-unstable/tilburg-design-tokens/dist/index.css';
import '@nl-design-system-unstable/tubbergen-design-tokens/dist/index.css';
import '@nl-design-system-unstable/tubbergen-design-tokens/src/font';
import '@nl-design-system-unstable/venray-design-tokens/dist/index.css';
import '@nl-design-system-unstable/vught-design-tokens/dist/index.css';
import '@nl-design-system-unstable/westervoort-design-tokens/dist/index.css';
Expand Down Expand Up @@ -98,6 +100,7 @@ const themes = [
'Rotterdam',
'Stede Broec',
'Tilburg',
'Tubbergen',
'Utrecht',
'Venray',
'Vught',
Expand Down
1 change: 1 addition & 0 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@nl-design-system-unstable/theme-switcher": "workspace:*",
"@nl-design-system-unstable/theme-toolkit": "workspace:*",
"@nl-design-system-unstable/tilburg-design-tokens": "workspace:*",
"@nl-design-system-unstable/tubbergen-design-tokens": "workspace:*",
"@nl-design-system-unstable/venray-design-tokens": "workspace:*",
"@nl-design-system-unstable/vught-design-tokens": "workspace:*",
"@nl-design-system-unstable/westervoort-design-tokens": "workspace:*",
Expand Down
30 changes: 30 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions proprietary/tubbergen-design-tokens/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Auteursrecht Gemeente Tubbergen

Copyright (c) 2023 Gemeente Tubbergen

## Logo en huisstijl

Op het huisstijl en logo zijn auteursrechten van toepassing. Het gebruik van logo en huisstijl is alleen toegestaan voor gebruik door Gemeente Tubbergen.

Wanneer je een bewerking van de software wilt gebruiken voor andere doeleinden, mag je niet het logo van Gemeente Tubbergen gebruiken en je ontwerpt een eigen huisstijl.

## Lettertype

Lettertypes die worden gebruikt voor de huisstijl zijn niet allemaal gratis en open source. Let op dat bij gebruik van die bijgeleverde lettertypes je een (betaalde) licentie regelt. Pas anders de configuratie aan om minder of andere lettertypes te gebruiken.

## Toestemming

Wanneer je het logo of de huisstijl wilt gebruiken kun je voor toestemming contact opnemen met Gemeente Tubbergen.
3 changes: 3 additions & 0 deletions proprietary/tubbergen-design-tokens/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# NL Design System design tokens Gemeente Tubbergen

These tokens have been obtained by analysing the [website of Gemeente Tubbergen](https://www.tubbergen.nl/).
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Meta, ColorPalette, ColorItem } from "@storybook/addon-docs";
import tokens from "../dist/tokens.json";
import { ColorSearch } from "@nl-design-system-unstable/theme-toolkit/src/ColorSearch";
import { ColorTable } from "@nl-design-system-unstable/theme-toolkit/src/ColorTable";
import config from "../src/config.json";

<Meta title={`${config.name}/Color`} />

# Color

## Find a color

<ColorSearch tokens={tokens[config.prefix]["color"]}></ColorSearch>

## Color palette

<ColorTable tokens={tokens[config.prefix]["color"]}></ColorTable>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Meta, Story } from "@storybook/addon-docs";
import { ComponentStories } from "@nl-design-system-unstable/theme-toolkit/src/ComponentStories";
import config from "../src/config.json";

<Meta title={`${config.name}`} />

# Components

<Story name="Components">
<ComponentStories config={config} />
</Story>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Meta, ColorPalette, ColorItem } from "@storybook/addon-docs";
import { DesignTokensTable } from "@nl-design-system-unstable/theme-toolkit/src/DesignTokensTable";
import tokens from "../dist/index.json";
import config from "../src/config.json";

<Meta title={`${config.name}/Design Tokens`} />

# Design Tokens

<DesignTokensTable tokens={tokens.filter((token) => token.path[0] !== config.prefix)}></DesignTokensTable>

## Proprietary Design Tokens

<DesignTokensTable tokens={tokens.filter((token) => token.path[0] === config.prefix)}></DesignTokensTable>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Meta, Description } from "@storybook/addon-docs";
import markdown from "../README.md";
import config from "../src/config.json";

<Meta title={`${config.name}/README`} />

<Description>{markdown}</Description>
42 changes: 42 additions & 0 deletions proprietary/tubbergen-design-tokens/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"version": "1.0.0-alpha.1",
"author": "Community for NL Design System",
"description": "NL Design System design tokens for Gemeente Tubbergen",
"website": "https://gemeente.tubbergen.nl/",
"keywords": [
"nl-design-system",
"conduction"
],
"license": "SEE LICENSE IN LICENSE.md",
"name": "@nl-design-system-unstable/tubbergen-design-tokens",
"private": false,
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git+ssh",
"url": "[email protected]:nl-design-system/themes.git"
},
"scripts": {
"clean": "rimraf -rf dist/",
"prebuild": "npm run clean",
"watch": "npm-run-all watch:**",
"watch:style-dictionary": "chokidar --follow-symlinks --command 'npm run --ignore-scripts build' 'src/**/*.tokens.json'",
"build": "npm-run-all build:**",
"build:scss": "sass --no-source-map src/:dist/",
"build:style-dictionary": "style-dictionary build --config ./style-dictionary.config.js"
},
"devDependencies": {
"@fontsource/lato": "5.0.12",
"@fontsource/montserrat": "5.0.8",
"@nl-design-system-unstable/theme-toolkit": "workspace:*",
"chokidar-cli": "3.0.0",
"npm-run-all": "4.1.5",
"rimraf": "3.0.2",
"style-dictionary": "3.8.0"
},
"bugs": {
"url": "https://github.com/ConductionNL/conduction-theme/issues"
},
"homepage": "https://github.com/ConductionNL/conduction-theme#readme"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"tubbergen": {
"color": {
"primary": {
"value": "{tubbergen.color.green.21}"
},
"primary-hover": {
"value": "{tubbergen.color.green.11}"
},
"error": { "value": "#d62410" },
"alert-error": { "value": "{tubbergen.color.black.20}" },
"alert-error-background": { "value": "#f8d7da" },
"warning": { "value": "#ffc107" },
"alert-warning": { "value": "{tubbergen.color.black.20}" },
"alert-warning-background": { "value": "#fff3cd" },
"succes": { "value": "#28a745" },
"alert-succes": { "value": "{tubbergen.color.black.20}" },
"alert-succes-background": { "value": "#d4edda" },
"info": { "value": "{tubbergen.color.green.24}" },
"alert-info": { "value": "{tubbergen.color.black.20}" },
"alert-info-background": { "value": "{tubbergen.color.green.89}" },
"green": {
"11": {
"value": "#063318"
},
"16": {
"value": "#084a22"
},
"21": {
"value": "#0b612d",
"comment": "Base/Green"
},
"24": {
"value": "#067432"
},
"76": {
"value": "#b0d4be"
},
"89": {
"value": "#d5efdf"
}
},
"blue": {
"36": {
"value": "#006cb9"
},
"48": {
"value": "#2e79c6"
},
"84": {
"value": "#ccd4df",
"comment": "Base/Blue"
},
"94": {
"value": "#edeff2"
},
"96": {
"value": "#f2f4f7"
}
},
"white": {
"98": {
"value": "#fafafa"
},
"100": {
"value": "#ffffff",
"comment": "Base/White"
}
},
"black": {
"0": {
"value": "#000000"
},
"13": {
"value": "#222222",
"comment": "Base/Black"
},
"20": {
"value": "#333333"
},
"33": {
"value": "#555555"
}
},
"yellow": {
"0": {
"value": "#f0b700",
"comment": "Base/Yellow"
}
},
"grey": {
"38": {
"value": "#5c6066"
},
"42": {
"value": "#6b6b6b"
},
"46": {
"value": "#767676"
},
"64": {
"value": "#9aa1ab",
"comment": "Base/Grey"
},
"72": {
"value": "#AEB6C2"
}
},
"lightgrey": {
"89": {
"value": "#e4e4e4",
"comment": "Base/LightGrey"
},
"96": {
"value": "#f5f5f5"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"tubbergen": {
"font-size": {
"4xs": { "value": "5px" },
"3xs": { "value": "8px" },
"2xs": { "value": "10px" },
"xs": { "value": "12px" },
"sm": { "value": "14px" },
"md": { "value": "16px" },
"lg": { "value": "18px" },
"xl": { "value": "24px" },
"2xl": { "value": "32px" },
"3xl": { "value": "48px" },
"4xl": { "value": "58px" }
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"tubbergen": {
"size": {
"4xs": { "value": "1px" },
"3xs": { "value": "2px" },
"2xs": { "value": "4px" },
"xs": { "value": "8px" },
"sm": { "value": "14px" },
"md": { "value": "18px" },
"lg": { "value": "24px" },
"xl": { "value": "32px" },
"2xl": { "value": "48px" },
"3xl": { "value": "72px" },
"4xl": { "value": "96px" }
}
}
}
Loading