generated from nl-design-system/example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Joost Wiechers <[email protected]>
- Loading branch information
1 parent
7e18e83
commit 4eda22d
Showing
3 changed files
with
136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* @license CC0-1.0 */ | ||
|
||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { Paragraph } from '@utrecht/component-library-react/dist/css-module'; | ||
import readme from './documentation/paragraph.md?raw'; | ||
|
||
const meta = { | ||
title: 'CSS Component/Paragraph', | ||
id: 'css-utrecht-paragraph', | ||
component: Paragraph, | ||
argTypes: { | ||
children: { | ||
name: 'Content', | ||
type: { | ||
name: 'string', | ||
required: true, | ||
}, | ||
defaultValue: '', | ||
}, | ||
}, | ||
args: { | ||
children: '', | ||
}, | ||
tags: ['autodocs'], | ||
parameters: { | ||
design: { | ||
type: 'figma', | ||
url: 'https://www.figma.com/design/ck81CE8SNzePi30jCEu7MK/NLDS---Gemeente-Tilburg---Bibliotheek?node-id=150-734&t=nrvRAztL0ecku9kp-0', | ||
}, | ||
docs: { | ||
description: { | ||
component: readme, | ||
}, | ||
}, | ||
}, | ||
} satisfies Meta<typeof Paragraph>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
name: 'Paragraph', | ||
args: { | ||
children: | ||
'"Tilburg, gelegen in het zuiden van Nederland, is een levendige stad met een rijke geschiedenis en een bruisende cultuur. Bekend om zijn textielindustrie in het verleden, heeft Tilburg zich ontwikkeld tot een moderne stad vol met kunst, muziek, en culinaire hoogstandjes. Wandel door de sfeervolle straten van de binnenstad en ontdek de vele boetiekjes, gezellige cafés en restaurants. Breng een bezoek aan de indrukwekkende musea, zoals het Textielmuseum of het De Pont Museum voor hedendaagse kunst, waar je kunt genieten van inspirerende tentoonstellingen. Verken het groene landschap rondom Tilburg, met prachtige parken en natuurgebieden zoals de Oude Warande en de Loonse en Drunense Duinen. Of geniet van een avondje uit in een van de vele theaters of concertzalen die de stad te bieden heeft. Met zijn diverse aanbod aan activiteiten en bezienswaardigheden is Tilburg een stad die voor ieder wat wils biedt', | ||
}, | ||
}; | ||
export const LeadParagraph: Story = { | ||
name: 'Lead paragraph', | ||
args: { | ||
...Default.args, | ||
lead: true, | ||
}, | ||
}; | ||
|
||
export const SmallPrintParagraph: Story = { | ||
name: 'Small print', | ||
args: { | ||
...Default.args, | ||
small: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Paragraph | ||
|
||
This is a paragraph. |
70 changes: 70 additions & 0 deletions
70
proprietary/design-tokens/src/components/utrecht/paragraph.tokens.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"utrecht": { | ||
"paragraph": { | ||
"color": { | ||
"type": "color", | ||
"value": "{tilburg.document.color}" | ||
}, | ||
"font-family": { | ||
"value": "{tilburg.document.font-family}", | ||
"type": "fontFamilies" | ||
}, | ||
"font-size": { | ||
"value": "{tilburg.document.font-size}", | ||
"type": "fontSizes" | ||
}, | ||
"font-weight": { | ||
"value": "{tilburg.document.font-weight}", | ||
"type": "fontWeights" | ||
}, | ||
"line-height": { | ||
"value": "{tilburg.document.line-height}", | ||
"type": "lineHeights" | ||
} | ||
}, | ||
"paragraph-lead": { | ||
"color": { | ||
"type": "color", | ||
"value": "{tilburg.document.color}" | ||
}, | ||
"font-family": { | ||
"value": "{tilburg.document.font-family}", | ||
"type": "fontFamilies" | ||
}, | ||
"font-size": { | ||
"value": "{tilburg.typography.font-size.lg}", | ||
"type": "fontSizes" | ||
}, | ||
"font-weight": { | ||
"value": "{tilburg.document.font-weight}", | ||
"type": "fontWeights" | ||
}, | ||
"line-height": { | ||
"value": "{tilburg.document.line-height}", | ||
"type": "lineHeights" | ||
} | ||
}, | ||
"paragraph-small": { | ||
"color": { | ||
"type": "color", | ||
"value": "{tilburg.document.color}" | ||
}, | ||
"font-family": { | ||
"value": "{tilburg.document.font-family}", | ||
"type": "fontFamilies" | ||
}, | ||
"font-size": { | ||
"value": "{tilburg.typography.font-size.sm}", | ||
"type": "fontSizes" | ||
}, | ||
"font-weight": { | ||
"value": "{tilburg.document.font-weight}", | ||
"type": "fontWeights" | ||
}, | ||
"line-height": { | ||
"value": "{tilburg.document.line-height}", | ||
"type": "lineHeights" | ||
} | ||
} | ||
} | ||
} |