Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@gyldendal/kobber-base
Advanced tools
Design tokens can be imported as json, css variables or sass variables:
Design tokens can be imported as json, css variables or sass variables:
import * as tokens from "~@gyldendal/kobber-base/themes/default/tokens";
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>
tokens-from-figma.json
yarn build
/
├── themes/
│ ├── tokens.css
│ ├── tokens.scss
│ └── token.json
├── build-tokens.ts
├── config.ts
└── tokens-from-figma.json
We use style-dictionary to transform and format the tokens in ./tokens-from-figma.json
.
In ./config.ts
we decide which formats we want (css, scss, js and more), and in ./build-tokens.ts
we can create formatters and use other utilities to change the output how we want.
The files in ./themes
are auto generated and should never be edited manually.
FAQs
## 🛠️ Usage
The npm package @gyldendal/kobber-base receives a total of 147 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 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.