![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@adapt-design-system/core
Advanced tools
React components that implement ADAPT Design System.
yarn add @adapt-design-system/core @emotion/react
<AdaptThemeProvider />
with a theme file and set the global fonts.import { Global, css, useTheme } from '@emotion/react';
import { AdaptThemeProvider, Button } from '@adapt-design-system/core';
const theme = useTheme();
const App = () => (
<AdaptThemeProvider>
<>
<Global
styles={css`
body {
font-family: ${theme.fonts.default};
color: ${theme.colors.text};
}
@font-face {
font-family: 'Graphik';
src: url('/Graphik-Regular-Web.woff2') format('woff2');
font-style: normal;
font-weight: 400;
font-display: fallback;
}
@font-face {
font-family: 'Graphik';
src: url('/Graphik-Semibold-Web.woff2') format('woff2');
font-style: normal;
font-weight: 600;
font-display: fallback;
}
`}
/>
<Button>Hi!</Button>
</>
</AdaptThemeProvider>
);
/packages/adapt-design-system-core
folder).yarn install
yarn run build:watch
The build will re-run every time you save changes. Alternatively you can run yarn run build
each time you wish to build.
To test out your changes to the DS locally, run npm link
in this repo directory to link it locally. Then, in your new consumer project (Gatsby, for example*) run yarn add @adapt-design-system/core
(if it's never been installed), then run npm link @adapt-design-system/core
to link it to the local version. If you're running the design system the build:watch
mode, your project should reload every time you save a change to the DS.
To publish a new version run yarn publish-package
. If you introduce a breaking change, bump the major version (2.0.3 -> 3.0.0). If you add new (non-breaking) functionality bump the minor version (2.0.3 -> 2.1.0). Otherwise bump patch when adding new icons (2.0.3 -> 2.0.4). You will be asked for a new version.
Don't forget to upgrade the consuming packages, in this case /docs
, to make use of the new version. Like so:
yarn upgrade @adapt-design-system/core@^2.0.4
FAQs
ADAPT Design System for React
The npm package @adapt-design-system/core receives a total of 0 weekly downloads. As such, @adapt-design-system/core popularity was classified as not popular.
We found that @adapt-design-system/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.