
Security News
Meet the Socket Team at RSAC and BSidesSF 2025
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
@adapt-design-system/core
Advanced tools
React components that implement ADAPT Design System.
yarn add @adapt-design-system/core styled-components
<AdaptThemeProvider />
with a theme file and set the global fonts.import { createGlobalStyle } from 'styled-components';
import { AdaptThemeProvider, Button } from '@adapt-design-system/core';
const GlobalStyle = createGlobalStyle`
body {
font-family: ${props => props.theme.fonts.default};
}
`;
const App = () => (
<AdaptThemeProvider>
<>
<GlobalStyle />
<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.
You may run into issues where styled-components
throws a warning about multiple running instances. This will prevent your project from properly compiling the locally-linked design system. To fix this, you need to edit or add a gatsby-node.js
file (for Gatsby users) or edit your webpack config to add the alias below.
Gatsby example:
const path = require('path');
exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
resolve: {
alias: {
'styled-components': path.resolve('./node_modules/styled-components'),
},
},
});
};
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
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
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.
Security News
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.