Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@livechat/chat-widget-design-tokens
Advanced tools
This package includes the basic design tokens that the LiveChat team uses to build a chat widget.
This package includes the basic design tokens that the LiveChat team uses to build a chat widget.
If you're building a chat widget integration, we recommend using this when styling your components. In that way, your design will stay in sync with widget design.
The package includes:
Using npm:
npm install @livechat/chat-widget-design-tokens
or using yarn:
yarn add @livechat/chat-widget-design-tokens
import { colors, spaces } from '@livechat/chat-widget-design-tokens'
<div style={{ padding: spaces.space6 }} />
Value for particular token is changing depend on the mode Light|Dark
Token name | ☀️ Light Mode | 🌚 Dark Mode |
---|---|---|
border | grayscale[500] | grayscale[600] |
divider | grayscale[100] | grayscale[600] |
error | red[500] | red[100] |
errorContrast | grayscale[0] | grayscale[900] |
subtleFeedback | yellow[50] | yellow[800] |
subtleFeedbackContrast | grayscale[900] | yellow[100] |
caution | yellow[500] | yellow[100] |
cautionContrast | grayscale[900] | grayscale[900] |
success | green[500] | green[100] |
successContrast | grayscale[0] | grayscale[900] |
primaryTextColor | grayscale[900] | grayscale[0] |
secondaryTextColor | grayscale[550] | grayscale[400] |
tertiaryTextColor | grayscale[400] | grayscale[600] |
surface | grayscale[0] | grayscale[800] |
surfaceVariant | grayscale[25] | grayscale[700] |
surfaceInteractive | grayscale[50] | grayscale[700] |
surfaceInteractivePressed | grayscale[600] | grayscale[400] |
surfaceDecorative | grayscale[100] | grayscale[700] |
hintSurface | grayscale[800] | grayscale[550] |
floatSurface | grayscale[0] | grayscale[700] |
pressedElement | grayscale[200] | grayscale[600] |
notification | ruby[500] | ruby[100] |
notificationContrast | grayscale[0] | grayscale[900] |
widgetBackground | grayscale[50] | grayscale[900] |
disabled | grayscale[100] | grayscale[700] |
disabledContrast | grayscale[600] | grayscale[500] |
formIconcolor | grayscale[50] | grayscale[900] |
FAQs
This package includes the basic design tokens that the LiveChat team uses to build a chat widget.
The npm package @livechat/chat-widget-design-tokens receives a total of 142 weekly downloads. As such, @livechat/chat-widget-design-tokens popularity was classified as not popular.
We found that @livechat/chat-widget-design-tokens 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.