
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
@gyldendal/kobber-base
Advanced tools
See also https://kobber.gyldendal.no/tokens/hva-er-tokens.
Design tokens can be imported as json, css variables or sass variables:
import * as tokens from "~@gyldendal/kobber-base/themes/default/tokens.js";
export const Button = styled.button`
background-color: ${tokens.component.button.color.background};
`;
@import "~@gyldendal/kobber-base/themes/default/tokens.css";
.button {
background-color: var(--kobber-component-button-color-background);
}
@use "~@gyldendal/kobber-base/themes/default/tokens.scss" as tokens;
.button {
background-color: tokens.$component-button-color-background;
}
Typography can be applied directly to HTML using CSS classes or by using composes in css modules:
<style>
@import "~@gyldendal/kobber-base/themes/default/typography.css";
</style>
<h1 class="kobber-typography-heading-xl">Heading</h1>
.my-heading {
composes: headingXxl from "~@gyldendal/kobber-base/themes/default/typography.module.css";
}
Also see the typography component from @gyldendal/kobber-components:
import { ThemeProvider, Typography } from "~@gyldendal/kobber-base/react";
<ThemeProvider variant="default">
<Typography component="h1" variant="headingXxl" />
</TheThemeProviderme>
/
βββ themes/
β βββ tokens.css
β βββ tokens.scss
β βββ token.json
βββ tokens-from-figma/
β βββ index.ts
β βββ tokens-YYYY-MM-DD.json
βββ build.ts
βββ buildConfig.ts
Using style-dictionary to transform and format the tokens from Figma.
The files in ./themes are auto generated and should never be edited manually.
FAQs
See also https://kobber.gyldendal.no/tokens/hva-er-tokens.
The npm package @gyldendal/kobber-base receives a total of 104 weekly downloads. As such, @gyldendal/kobber-base popularity was classified as not popular.
We found that @gyldendal/kobber-base demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 8 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated βelf-*β npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.