
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@oqton/design-system
Advanced tools
disabled
, not isDisabled
.Static assets are stored in the public
folder. These include things such as static images.
The design system is split into the following categories:
A design system is a set of interconnected patterns and shared practices.
Patterns are the repeating elements that we combine to create the product: things like user flows, interactions, buttons, text fields, icons, colors, typography, microcopy, all of it. If it’s reusable, it goes in the system.
Practices are how we choose to create, capture, share and use those patterns.
Principles provide directions that help make decisions for the system.
This is where we define the attributes for our design-system's theme. It is broken into the following sections:
A theme is constructed from these foundations and then consumed by our code via styled-components
and styled-system
. See more on themes here
In order to implement components, responsive components, and layouts, we need a tool for managing spacing. For this, we use the following foundational components There are 5 components used for managing our spacing:
position: absolute
position: relative
position: fixed
display: flex
position: sticky
All design system components should inherit from these foundational components when declaring any sort of margin, padding, width, height, or flex amount.
Components are used to as the building blocks to create the applications interface.
Each design system component should consist of the following files:
Component - <component>.js
<component>Styles.js
Style declarations - <component>Styles.js
Storybook - <component>.stories.js
Tests - ./__tests__/<component>.test.js
Full theming support by exporting a wrapper component. Also need to use utils.createTheme() to create or merge in any other themes.
import {Theme, utils} from '@oqton/design-system';
<Theme theme={utils.createTheme()} />
If you need to merge in another theme:
<Theme theme={utils.createTheme(anotherTheme)} />
This component provides a theme to all React components underneath itself via the context API. In the render tree all components will have access to the provided theme, even when they are multiple levels deep.
Under development
Workflows try to capture the experience of a user during the interaction with the product.
Utility functions are organised here Each utility function should have a corresponding test suite to describe functionality
This will start docz on port 3001 in development mode
yarn start-docz
Your docz instance will be running on http://localhost:3001.
To view an online Docz site from the develop
branch, visit: http://design-system.oqton.ai
This instance is updated automatically upon merging into develop.
Run the tests
yarn test
Run lint
yarn lint
Run lint and attempt to automatically fix issues
yarn fix-lint
Run formatting check
yarn check-formatting
Run formatter
yarn fix-formatting
FAQs
Oqton's design system.
We found that @oqton/design-system 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.