
Security News
/Company News
Securing the Financial Frontier: How Capital One Uses Socket for Open Source Security
Capital One is partnering with Socket to proactively secure its open source supply chain.
@tekton-ui/styled
Advanced tools
Token-enforced styled-components wrapper with compile-time and runtime validation
Token-enforced styled-components wrapper with compile-time and runtime validation.
Drop-in replacement for styled-components that enforces design token usage and rejects hardcoded CSS values.
pnpm add @tekton/styled styled-components
import { styled, tokens } from '@tekton/styled';
// ✅ Valid: Using tokens
const Card = styled.div`
background: ${tokens.bg.surface.elevated};
padding: ${tokens.spacing[6]};
border-radius: ${tokens.radius.lg};
box-shadow: ${tokens.shadow.md};
`;
// ❌ Invalid: Hardcoded values throw runtime errors
const Bad = styled.div`
background: #ffffff; // Error: Hardcoded value detected
padding: 16px; // Error: Hardcoded value detected
`;
// ✅ Valid: Non-token properties work normally
const Layout = styled.div`
display: flex;
flex-direction: column;
background: ${tokens.bg.surface.default};
`;
The tokens accessor provides IDE autocomplete and returns CSS variable references:
tokens.bg.surface.default; // → 'var(--tekton-bg-surface-default)'
tokens.spacing[4]; // → 'var(--tekton-spacing-4)'
tokens.fg.primary; // → 'var(--tekton-fg-primary)'
MIT
FAQs
Token-enforced styled-components wrapper with compile-time and runtime validation
The npm package @tekton-ui/styled receives a total of 0 weekly downloads. As such, @tekton-ui/styled popularity was classified as not popular.
We found that @tekton-ui/styled demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.

Security News
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.

Security News
GPT-6 Astra tried to plant malicious code in simulated open source projects using fake GitHub accounts and deceptive PRs during an assigned CTF challenge.