Skip to content

Commit

Permalink
Merge pull request #74 from ConductionNL/feature/NDT-39/OpenCatalogi
Browse files Browse the repository at this point in the history
feature/NDT-39/OpenCatalogi
  • Loading branch information
remko48 authored Dec 12, 2023
2 parents ec118ee + 79cb991 commit f84c8f2
Show file tree
Hide file tree
Showing 94 changed files with 2,387 additions and 14 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Conduction's design tokens theme

- **Version 1**

- 1.0.60:
- Removed opacity token from tooltip tokens in all themes.
- Added OpenCatalogi theme based on Rotterdam theme.
- 1.0.59: Updated radio-button tokens in Rotterdam theme.
- 1.0.58: Added radio-button tokens in all themes.
- 1.0.57: Added navbar to logo tokens in all themes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"border-style": { "value": "unset" },
"border-color": { "value": "unset" },
"border-radius": { "value": "0px" },
"opacity": { "value": "1" },
"z-index": { "value": "9999" }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"border-style": { "value": "unset" },
"border-color": { "value": "unset" },
"border-radius": { "value": "0px" },
"opacity": { "value": "1" },
"z-index": { "value": "9999" }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"border-style": { "value": "unset" },
"border-color": { "value": "unset" },
"border-radius": { "value": "0px" },
"opacity": { "value": "1" },
"z-index": { "value": "9999" }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"border-style": { "value": "unset" },
"border-color": { "value": "unset" },
"border-radius": { "value": "0px" },
"opacity": { "value": "1" },
"z-index": { "value": "9999" }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"border-style": { "value": "unset" },
"border-color": { "value": "unset" },
"border-radius": { "value": "0px" },
"opacity": { "value": "1" },
"z-index": { "value": "9999" }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"border-style": { "value": "unset" },
"border-color": { "value": "unset" },
"border-radius": { "value": "0px" },
"opacity": { "value": "1" },
"z-index": { "value": "9999" }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"border-style": { "value": "unset" },
"border-color": { "value": "unset" },
"border-radius": { "value": "0px" },
"opacity": { "value": "1" },
"z-index": { "value": "9999" }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"border-style": { "value": "unset" },
"border-color": { "value": "unset" },
"border-radius": { "value": "0px" },
"opacity": { "value": "1" },
"z-index": { "value": "9999" }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"border-style": { "value": "unset" },
"border-color": { "value": "unset" },
"border-radius": { "value": "0px" },
"opacity": { "value": "1" },
"z-index": { "value": "9999" }
}
}
Expand Down
17 changes: 17 additions & 0 deletions municipalities/opencatalogi-design-tokens/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Auteursrecht OpenCatalogi

Copyright (c) 2023 OpenCatalogi

## Logo en huisstijl

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

Wanneer je een bewerking van de software wilt gebruiken voor andere doeleinden, mag je niet het logo van OpenCatalogi 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 OpenCatalogi.
3 changes: 3 additions & 0 deletions municipalities/opencatalogi-design-tokens/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# NL Design System design tokens OpenCatalogi

These tokens have been made for the [website of OpenCatalogi](https://opencatalogi.nl/) by using the tokens of [Gemeente Rotterdam](https://www.rotterdam.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>
40 changes: 40 additions & 0 deletions municipalities/opencatalogi-design-tokens/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"version": "1.0.0-alpha.1",
"author": "Community for NL Design System",
"description": "NL Design System design tokens for OpenCatalogi",
"website": "https://opencatalogi.nl/",
"keywords": [
"nl-design-system",
"conduction"
],
"license": "SEE LICENSE IN LICENSE.md",
"name": "@nl-design-system-unstable/leiden-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": {
"@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"
}
24 changes: 24 additions & 0 deletions municipalities/opencatalogi-design-tokens/src/_responsive.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* @license SEE LICENSE.md
* Copyright (c) 2021 NL Design System Community
* All rights reserved
*/

/* stylelint-disable no-duplicate-selectors */
.rotterdam-theme {
@media (min-width: 768px) {
& {
--utrecht-page-footer-padding-inline-start: 24px;
--utrecht-page-footer-padding-inline-end: 24px;
--utrecht-page-footer-block-end: 115px;
--utrecht-page-footer-block-start: 52px;
}
}
@media (max-width: 375px) {
& {
--utrecht-page-footer-padding-inline-start: 24px;
--utrecht-page-footer-padding-inline-end: 24px;
--utrecht-page-footer-block-end: 48px;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"conduction": {
"card-header": {
"background-color": {},
"border-bottom-width": {},
"border-bottom-style": {},
"border-bottom-color": {},
"color": { "value": "{utrecht.document.color}" },
"hover": {
"background-color": {},
"border-bottom-width": {},
"border-bottom-style": {},
"border-bottom-color": {}
},
"title": {
"color": { "value": "{opencatalogi.color.green.tint-01}" }
},
"date": {
"color": { "value": "{opencatalogi.color.gray.tint-11}" },
"font-size": { "value": "16px" },
"font-weight": { "value": "400" },
"margin-block-end": { "value": "8px" }
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"conduction": {
"card-wrapper": {
"background-color": { "value": "{opencatalogi.color.base.white}" },
"border-color": {},
"border-style": {},
"border-width": {},
"border-bottom-color": { "value": "{opencatalogi.color.gray.tint-04}" },
"border-bottom-style": { "value": "solid" },
"border-bottom-width": { "value": "4px" },
"border-radius": { "value": "0px" },
"box-shadow": {},
"color": { "value": "{opencatalogi.color.gray.tint-11}" },
"hover": {
"background-color": {},
"border-bottom-color": { "value": "{opencatalogi.color.green.tint-01}" },
"border-bottom-style": { "value": "solid" },
"border-bottom-width": { "value": "4px" }
},
"padding-inline-end": { "value": "16px" },
"padding-inline-start": { "value": "16px" },
"padding-block-end": { "value": "16px" },
"padding-block-start": { "value": "16px" }
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"conduction": {
"input-checkbox": {
"color": { "value": "{opencatalogi.color.base.white}" },
"border-width": { "value": "1px" },
"border-style": { "value": "solid" },
"border-color": { "value": "{opencatalogi.color.gray.tint-08}" },
"border-radius": { "value": "0px" },
"box-shadow": {},
"hover": {
"color": { "value": "{opencatalogi.color.base.white}" },
"border-width": { "value": "2px" },
"border-style": { "value": "solid" },
"border-color": { "value": "{opencatalogi.color.base.green}" },
"border-radius": { "value": "0px" },
"box-shadow": {}
},
"checked": {
"color": { "value": "{opencatalogi.color.base.green}" },
"border-width": { "value": "1px" },
"border-style": { "value": "solid" },
"border-color": { "value": "{opencatalogi.color.base.green}" },
"border-radius": { "value": "0px" },
"box-shadow": {},
"checkmark-url": {},
"hover": {
"color": { "value": "{opencatalogi.color.base.black}" },
"border-width": { "value": "1px" },
"border-style": { "value": "solid" },
"border-color": { "value": "{opencatalogi.color.base.black}" },
"border-radius": { "value": "0px" },
"box-shadow": {}
}
},
"disabled": {
"color": { "value": "{opencatalogi.color.gray.tint-08}" },
"border-width": { "value": "1px" },
"border-style": { "value": "solid" },
"border-color": { "value": "{opencatalogi.color.gray.tint-08}" },
"border-radius": { "value": "0px" },
"box-shadow": {},
"hover": {
"color": { "value": "{opencatalogi.color.gray.tint-08}" },
"border-width": { "value": "1px" },
"border-style": { "value": "solid" },
"border-color": { "value": "{opencatalogi.color.gray.tint-08}" },
"border-radius": { "value": "0px" },
"box-shadow": {}
}
},
"focus": {
"outline-width": { "value": "1px" },
"outline-style": { "value": "solid" },
"outline-color": { "value": "{opencatalogi.color.base.black}" },
"outline-offset": { "value": "2px" }
},
"label": {
"color": { "value": "{utrecht.document.color}" },
"font-size": { "value": "{utrecht.document.font-size}" },
"font-weight": {},
"font-family": { "value": "{utrecht.document.font-family}" },
"container": {
"padding": { "value": "3px" },
"margin": { "value": "3px" }
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"conduction": {
"download-card": {
"background-color": {},
"title": {
"color": { "value": "{utrecht.document.color}" },
"font-size": { "value": "20px" },
"font-weight": { "value": "{opencatalogi.typography.weight-scale.bold.font-weight}" },
"font-family": { "value": "{opencatalogi.typography.sans-serif.font-family}" },
"margin-inline-end": { "value": "14px" }
},
"border-width": { "value": "1px" },
"border-style": { "value": "solid" },
"border-color": { "value": "{opencatalogi.color.gray.tint-04}" },
"border-radius": { "value": "0px" },
"icon-gap": { "value": "14px" },
"padding-inline-end": { "value": "18px" },
"padding-inline-start": { "value": "18px" },
"padding-block-end": { "value": "18px" },
"padding-block-start": { "value": "18px" }
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"conduction": {
"logo": {
"header": {
"inline-size": { "value": "46px" },
"block-size": { "value": "46px" },
"background-image": {
"value": "url('https://dev.opencatalogi.nl/static/logo_OpenCatalogi-8b1b0a001c3f37dae4d3f69b5964ec72.png')"
}
},
"footer": {
"inline-size": { "value": "46px" },
"block-size": { "value": "46px" },
"background-image": {
"value": "url('https://dev.opencatalogi.nl/static/logo_OpenCatalogi-8b1b0a001c3f37dae4d3f69b5964ec72.png')"
}
},
"navbar": {
"inline-size": { "value": "46px" },
"block-size": { "value": "46px" },
"background-image": {
"value": "url('https://dev.opencatalogi.nl/static/logo_OpenCatalogi-8b1b0a001c3f37dae4d3f69b5964ec72.png')"
}
}
}
}
}
Loading

0 comments on commit f84c8f2

Please sign in to comment.