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(ffe-core): ny fargepalett med semantiske variabler. #2406

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tuva-odegard
Copy link
Contributor

@tuva-odegard tuva-odegard commented Nov 4, 2024

Designsystemet har fått en ny fargepalett.

Den består av PRIMITIVES, som er 0-1000 varianter av en farge (fjell, vann, osv). Disse skal helst ikke brukes direkte.
Det neste laget er SEMANTIC VARIABLES. Det er en semantisk bruk av fargene. Disse bruker vi i designsystemets komponenter. Darkmode er bakt inn i de semantiske lagene, så hver komponent trenger ikke bry seg med dark mode. De semantiske variablene har følgende oppbygning:
ffe-color-{type}-{variant}-{state}. For eksempel ffe-color-border-primary-default.

En oppdatering av komponenten til å bruke semantiske variabler skal ikke trenge å medføre en endring for bruken, med mindre dere har lagt til egen styling.

@tuva-odegard tuva-odegard requested a review from a team as a code owner November 4, 2024 10:15
@pethel
Copy link
Contributor

pethel commented Nov 4, 2024

feat(ffe-core): ny fargepalett med semantiske variabler.

packages/ffe-core/less/theme.less Outdated Show resolved Hide resolved
packages/ffe-core/less/theme.less Outdated Show resolved Hide resolved
packages/ffe-core/less/theme.less Outdated Show resolved Hide resolved
packages/ffe-core/less/theme.less Show resolved Hide resolved
@tuva-odegard tuva-odegard force-pushed the semantiske-farger branch 3 times, most recently from 45251b0 to e3eaf18 Compare November 5, 2024 07:31
Copy link

github-actions bot commented Nov 5, 2024

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2406.westeurope.2.azurestaticapps.net

pethel
pethel previously approved these changes Nov 5, 2024
antidecaf
antidecaf previously approved these changes Nov 5, 2024
@tuva-odegard tuva-odegard dismissed stale reviews from antidecaf and pethel via 8db28c7 November 5, 2024 12:00
Copy link

github-actions bot commented Nov 5, 2024

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-2406.westeurope.2.azurestaticapps.net

@pethel pethel changed the title refactor(ffe-core): ny fargepalett med semantiske variabler. feat(ffe-core): ny fargepalett med semantiske variabler. Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants