
Product
Go Support Is Now Generally Available
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
@adapt-design-system/core
Advanced tools
React components that implement ADAPT Design System.
yarn add @adapt-design-system/core @emotion/core emotion-theming
<AdaptThemeProvider />
with a theme file and set the global fonts.import { Global, css } from '@emotion/core';
import { useTheme } from 'emotion-theming';
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.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.