{"_id":"@brkz-inc/foundations","_rev":"5-38f89ff36a9095bedf4d9b0d3b62943b","name":"@brkz-inc/foundations","dist-tags":{"latest":"2.6.1"},"versions":{"2.0.0":{"name":"@brkz-inc/foundations","version":"2.0.0","license":"SEE LICENSE IN LICENSE","_id":"@brkz-inc/foundations@2.0.0","maintainers":[{"name":"brkz-tech","email":"techsubscriptions@brkz.com"}],"homepage":"https://github.com/BRKZ-Inc/brkz-ui#readme","bugs":{"url":"https://github.com/BRKZ-Inc/brkz-ui/issues"},"dist":{"shasum":"cc23f1d286e9e85399f7889c6f99bf2fb5203546","tarball":"https://registry.npmjs.org/@brkz-inc/foundations/-/foundations-2.0.0.tgz","fileCount":15,"integrity":"sha512-5Iwd+Dldu6/yLt3qjmJ1N3k6bUsuTLpv1Ajxwr7s4i5a8ix6tkXXqf80XEn/3a2og2w3JzxOgt8e0fndF+VBNA==","signatures":[{"sig":"MEUCIQDl8zkPL/nM954NMtVKU1SK7I+/ksgtTSDaZ43g+3+SCQIgeQcHRvVfdrOU/NcZkAVnhVgOv1kiOVmsePeOAoN6JPo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":956601},"main":"./dist/index.js","type":"module","_from":"file:brkz-inc-foundations-2.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./tailwind":"./src/tailwind-preset.ts","./fonts.css":"./src/fonts.css","./global.css":"./src/global.css","./fonts/InterVariable.woff2":"./src/fonts/InterVariable.woff2","./fonts/InterVariable-Italic.woff2":"./src/fonts/InterVariable-Italic.woff2","./fonts/NotoSansArabic-Variable.woff2":"./src/fonts/NotoSansArabic-Variable.woff2"},"scripts":{"dev":"tsup src/index.ts --format esm,cjs --dts --watch","test":"vitest run","build":"tsup src/index.ts --format esm,cjs --dts --clean","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"brkz-tech","email":"techsubscriptions@brkz.com"},"_resolved":"/tmp/c4a3f643d4adf4ff1c2088e11a3059af/brkz-inc-foundations-2.0.0.tgz","_integrity":"sha512-5Iwd+Dldu6/yLt3qjmJ1N3k6bUsuTLpv1Ajxwr7s4i5a8ix6tkXXqf80XEn/3a2og2w3JzxOgt8e0fndF+VBNA==","repository":{"url":"git+https://github.com/BRKZ-Inc/brkz-ui.git","type":"git"},"_npmVersion":"10.8.2","description":"BRKZ foundations — Tailwind preset, ThemeProvider, global styles, and utilities","directories":{},"_nodeVersion":"20.20.2","dependencies":{"clsx":"^2.1.1","tailwind-merge":"^2.5.2","@brkz-inc/tokens":"2.0.0","class-variance-authority":"^0.7.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.2.4","vitest":"^2.0.5","typescript":"^5.5.4","@types/react":"^18.3.4","@types/react-dom":"^18.3.0","@brkz-inc/tsconfig":"1.0.0","@vitest/coverage-v8":"^2.0.5","@vitejs/plugin-react":"^4.3.1","@testing-library/react":"^16.0.1","@testing-library/jest-dom":"^6.5.0"},"peerDependencies":{"react":">=18","react-dom":">=18","tailwindcss":">=3.4"},"_npmOperationalInternal":{"tmp":"tmp/foundations_2.0.0_1783003878298_0.6224255829962921","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@brkz-inc/foundations","version":"2.2.0","license":"SEE LICENSE IN LICENSE","_id":"@brkz-inc/foundations@2.2.0","maintainers":[{"name":"brkz-tech","email":"techsubscriptions@brkz.com"}],"homepage":"https://github.com/BRKZ-Inc/brkz-ui#readme","bugs":{"url":"https://github.com/BRKZ-Inc/brkz-ui/issues"},"dist":{"shasum":"4aa1b533cf9635bb8155b9b446ca949f96815ec9","tarball":"https://registry.npmjs.org/@brkz-inc/foundations/-/foundations-2.2.0.tgz","fileCount":15,"integrity":"sha512-eqVP/mUGlots2vs397vgSH2SBnpPEMBwCSR4C/6pEhF9ghfJpYFH7X8MJAWsHOy7/t/9Td1luF5vFkqESQAavA==","signatures":[{"sig":"MEUCIEkBkLKI1YXImCs1/K0hSltQJhFBs2g0d1hoyN+uReMqAiEA0j5eA5EkZrsKaywa4iScFAbHDbJ+bq7X8ra9PfgHV74=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":956832},"main":"./dist/index.js","type":"module","_from":"file:brkz-inc-foundations-2.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./tailwind":"./src/tailwind-preset.ts","./fonts.css":"./src/fonts.css","./global.css":"./src/global.css","./fonts/InterVariable.woff2":"./src/fonts/InterVariable.woff2","./fonts/InterVariable-Italic.woff2":"./src/fonts/InterVariable-Italic.woff2","./fonts/NotoSansArabic-Variable.woff2":"./src/fonts/NotoSansArabic-Variable.woff2"},"scripts":{"dev":"tsup src/index.ts --format esm,cjs --dts --watch","test":"vitest run","build":"tsup src/index.ts --format esm,cjs --dts --clean","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"brkz-tech","email":"techsubscriptions@brkz.com"},"_resolved":"/tmp/b2e1929084af3f00171273235e97cece/brkz-inc-foundations-2.2.0.tgz","_integrity":"sha512-eqVP/mUGlots2vs397vgSH2SBnpPEMBwCSR4C/6pEhF9ghfJpYFH7X8MJAWsHOy7/t/9Td1luF5vFkqESQAavA==","repository":{"url":"git+https://github.com/BRKZ-Inc/brkz-ui.git","type":"git"},"_npmVersion":"10.8.2","description":"BRKZ foundations — Tailwind preset, ThemeProvider, global styles, and utilities","directories":{},"_nodeVersion":"20.20.2","dependencies":{"clsx":"^2.1.1","tailwind-merge":"^2.5.2","@brkz-inc/tokens":"2.0.0","class-variance-authority":"^0.7.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.2.4","vitest":"^2.0.5","typescript":"^5.5.4","@types/react":"^18.3.4","@types/react-dom":"^18.3.0","@brkz-inc/tsconfig":"1.0.0","@vitest/coverage-v8":"^2.0.5","@vitejs/plugin-react":"^4.3.1","@testing-library/react":"^16.0.1","@testing-library/jest-dom":"^6.5.0"},"peerDependencies":{"react":">=18","react-dom":">=18","tailwindcss":">=3.4"},"_npmOperationalInternal":{"tmp":"tmp/foundations_2.2.0_1785493052210_0.8581168398404755","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"name":"@brkz-inc/foundations","version":"2.4.0","license":"SEE LICENSE IN LICENSE","_id":"@brkz-inc/foundations@2.4.0","maintainers":[{"name":"brkz-tech","email":"techsubscriptions@brkz.com"}],"homepage":"https://github.com/BRKZ-Inc/brkz-ui#readme","bugs":{"url":"https://github.com/BRKZ-Inc/brkz-ui/issues"},"dist":{"shasum":"3438bb0a747ee19af997cd0a34f0071ad3ee7dd7","tarball":"https://registry.npmjs.org/@brkz-inc/foundations/-/foundations-2.4.0.tgz","fileCount":15,"integrity":"sha512-tfW7y92KXNv8wVyv+IP+BKvxUqSmoksueb358W6jM51jH62qsxx4ynyWNyocZrkO9ySpjmdm9V53YirYCu+CFQ==","signatures":[{"sig":"MEUCIQDCaUXVPFibfQSL4wuCNGY8QGSo9swVPpIs5oevPzHBEwIgfMfGjhx7fgRuUK5oSqGXYSJJSryaHFaVta7wuwkTsxQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":956833},"main":"./dist/index.js","type":"module","_from":"file:brkz-inc-foundations-2.4.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./tailwind":"./src/tailwind-preset.ts","./fonts.css":"./src/fonts.css","./global.css":"./src/global.css","./fonts/InterVariable.woff2":"./src/fonts/InterVariable.woff2","./fonts/InterVariable-Italic.woff2":"./src/fonts/InterVariable-Italic.woff2","./fonts/NotoSansArabic-Variable.woff2":"./src/fonts/NotoSansArabic-Variable.woff2"},"scripts":{"dev":"tsup src/index.ts --format esm,cjs --dts --watch","test":"vitest run","build":"tsup src/index.ts --format esm,cjs --dts --clean","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"brkz-tech","email":"techsubscriptions@brkz.com"},"_resolved":"/tmp/f4bb376a3a42b956c224c7534d53e074/brkz-inc-foundations-2.4.0.tgz","_integrity":"sha512-tfW7y92KXNv8wVyv+IP+BKvxUqSmoksueb358W6jM51jH62qsxx4ynyWNyocZrkO9ySpjmdm9V53YirYCu+CFQ==","repository":{"url":"git+https://github.com/BRKZ-Inc/brkz-ui.git","type":"git"},"_npmVersion":"10.8.2","description":"BRKZ foundations — Tailwind preset, ThemeProvider, global styles, and utilities","directories":{},"_nodeVersion":"20.20.2","dependencies":{"clsx":"^2.1.1","tailwind-merge":"^2.5.2","@brkz-inc/tokens":"^2.0.0","class-variance-authority":"^0.7.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.2.4","vitest":"^2.0.5","typescript":"^5.5.4","@types/react":"^18.3.4","@types/react-dom":"^18.3.0","@brkz-inc/tsconfig":"1.0.0","@vitest/coverage-v8":"^2.0.5","@vitejs/plugin-react":"^4.3.1","@testing-library/react":"^16.0.1","@testing-library/jest-dom":"^6.5.0"},"peerDependencies":{"react":">=18","react-dom":">=18","tailwindcss":">=3.4"},"_npmOperationalInternal":{"tmp":"tmp/foundations_2.4.0_1787239397550_0.2658028282616114","host":"s3://npm-registry-packages-npm-production"}},"2.6.0":{"name":"@brkz-inc/foundations","version":"2.6.0","license":"SEE LICENSE IN LICENSE","_id":"@brkz-inc/foundations@2.6.0","maintainers":[{"name":"brkz-tech","email":"techsubscriptions@brkz.com"}],"homepage":"https://github.com/BRKZ-Inc/brkz-ui#readme","bugs":{"url":"https://github.com/BRKZ-Inc/brkz-ui/issues"},"dist":{"shasum":"c3d0b9883af90cbf9f9177307851810bec6591db","tarball":"https://registry.npmjs.org/@brkz-inc/foundations/-/foundations-2.6.0.tgz","fileCount":15,"integrity":"sha512-8fcYf8Yk1ceO/Oz4I7R/IuiG5Whhjwp6LsoCeSNtCdzRIylGZdacNrrxxsBXlxE+DfvnMPSaQc9hZ4w07losXA==","signatures":[{"sig":"MEQCICpevWU8KOkLbUR3LOfbnmYQw2CUIDcTRjpwUPTpDXW4AiBNP8AyFkIR7sc1k9wZVbFLWZBR4Kq27OuJwlmCswE2LA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":977613},"main":"./dist/index.js","type":"module","_from":"file:brkz-inc-foundations-2.6.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./tailwind":"./src/tailwind-preset.ts","./fonts.css":"./src/fonts.css","./global.css":"./src/global.css","./fonts/InterVariable.woff2":"./src/fonts/InterVariable.woff2","./fonts/InterVariable-Italic.woff2":"./src/fonts/InterVariable-Italic.woff2","./fonts/NotoSansArabic-Variable.woff2":"./src/fonts/NotoSansArabic-Variable.woff2"},"scripts":{"dev":"tsup src/index.ts --format esm,cjs --dts --watch","test":"vitest run","build":"tsup src/index.ts --format esm,cjs --dts --clean","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"brkz-tech","email":"techsubscriptions@brkz.com"},"_resolved":"/tmp/5e96b780fbdbe68206a5bf13aa44b244/brkz-inc-foundations-2.6.0.tgz","_integrity":"sha512-8fcYf8Yk1ceO/Oz4I7R/IuiG5Whhjwp6LsoCeSNtCdzRIylGZdacNrrxxsBXlxE+DfvnMPSaQc9hZ4w07losXA==","repository":{"url":"git+https://github.com/BRKZ-Inc/brkz-ui.git","type":"git"},"_npmVersion":"10.8.2","description":"BRKZ foundations — Tailwind preset, ThemeProvider, global styles, and utilities","directories":{},"_nodeVersion":"20.20.2","dependencies":{"clsx":"^2.1.1","tailwind-merge":"^2.5.2","@brkz-inc/tokens":"^2.0.0","class-variance-authority":"^0.7.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.2.4","vitest":"^2.0.5","typescript":"^5.5.4","@types/react":"^18.3.4","@types/react-dom":"^18.3.0","@brkz-inc/tsconfig":"1.0.0","@vitest/coverage-v8":"^2.0.5","@vitejs/plugin-react":"^4.3.1","@testing-library/react":"^16.0.1","@testing-library/jest-dom":"^6.5.0"},"peerDependencies":{"react":">=18","react-dom":">=18","tailwindcss":">=3.4"},"_npmOperationalInternal":{"tmp":"tmp/foundations_2.6.0_1788944154273_0.31463845108836064","host":"s3://npm-registry-packages-npm-production"}},"2.6.1":{"name":"@brkz-inc/foundations","version":"2.6.1","description":"BRKZ foundations — Tailwind preset, ThemeProvider, global styles, and utilities","license":"SEE LICENSE IN LICENSE","repository":{"type":"git","url":"git+https://github.com/BRKZ-Inc/brkz-ui.git"},"type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./tailwind":"./src/tailwind-preset.ts","./global.css":"./src/global.css","./fonts.css":"./src/fonts.css","./fonts/InterVariable.woff2":"./src/fonts/InterVariable.woff2","./fonts/InterVariable-Italic.woff2":"./src/fonts/InterVariable-Italic.woff2","./fonts/NotoSansArabic-Variable.woff2":"./src/fonts/NotoSansArabic-Variable.woff2"},"dependencies":{"class-variance-authority":"^0.7.0","clsx":"^2.1.1","tailwind-merge":"^2.5.2","@brkz-inc/tokens":"^2.0.0"},"peerDependencies":{"react":">=18","react-dom":">=18","tailwindcss":">=3.4"},"devDependencies":{"@testing-library/jest-dom":"^6.5.0","@testing-library/react":"^16.0.1","@types/react":"^18.3.4","@types/react-dom":"^18.3.0","@vitejs/plugin-react":"^4.3.1","@vitest/coverage-v8":"^2.0.5","tsup":"^8.2.4","typescript":"^5.5.4","vitest":"^2.0.5","@brkz-inc/tsconfig":"1.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org","access":"public"},"scripts":{"build":"tsup src/index.ts --format esm,cjs --dts --clean","dev":"tsup src/index.ts --format esm,cjs --dts --watch","typecheck":"tsc --noEmit","test":"vitest run","test:watch":"vitest","clean":"rm -rf dist"},"_id":"@brkz-inc/foundations@2.6.1","bugs":{"url":"https://github.com/BRKZ-Inc/brkz-ui/issues"},"homepage":"https://github.com/BRKZ-Inc/brkz-ui#readme","_integrity":"sha512-v9dw+pCAgAcnkk5S/K66LWdrIvzbawHHYznImvddlQr666LZ+zti/EzwyGTwVW1ppwDxqDjdqXdFrmTn7N7LVw==","_resolved":"/tmp/f1b4da13867317bcee88805c7dc9e3ec/brkz-inc-foundations-2.6.1.tgz","_from":"file:brkz-inc-foundations-2.6.1.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-v9dw+pCAgAcnkk5S/K66LWdrIvzbawHHYznImvddlQr666LZ+zti/EzwyGTwVW1ppwDxqDjdqXdFrmTn7N7LVw==","shasum":"e107f99f388e51e654c08b6896052b1c991913e1","tarball":"https://registry.npmjs.org/@brkz-inc/foundations/-/foundations-2.6.1.tgz","fileCount":16,"unpackedSize":961184,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDaXtnJD6r/41CSf6l0DYs/XRofxCj0LLoN7iv86ialRQIgcVF2zQU6GnHhM7DUNVVwqUMH4DnLEFH+BnbrSkWDXp0="}]},"_npmUser":{"name":"brkz-tech","email":"techsubscriptions@brkz.com"},"directories":{},"maintainers":[{"name":"brkz-tech","email":"techsubscriptions@brkz.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/foundations_2.6.1_1788968733149_0.6485697120369642"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-02T14:51:18.086Z","modified":"2026-09-09T15:45:33.528Z","2.0.0":"2026-07-02T14:51:18.474Z","2.2.0":"2026-07-31T10:17:32.386Z","2.4.0":"2026-08-20T15:23:17.747Z","2.6.0":"2026-09-09T08:55:54.420Z","2.6.1":"2026-09-09T15:45:33.303Z"},"bugs":{"url":"https://github.com/BRKZ-Inc/brkz-ui/issues"},"license":"SEE LICENSE IN LICENSE","homepage":"https://github.com/BRKZ-Inc/brkz-ui#readme","repository":{"type":"git","url":"git+https://github.com/BRKZ-Inc/brkz-ui.git"},"description":"BRKZ foundations — Tailwind preset, ThemeProvider, global styles, and utilities","maintainers":[{"name":"brkz-tech","email":"techsubscriptions@brkz.com"}],"readme":"# @brkz-inc/foundations\n\nFoundational layer of the BRKZ design system. Provides the Tailwind preset, ThemeProvider, global styles, and utilities.\n\n## Contents\n\n- **`brkzPreset`** — Tailwind CSS preset that maps `@brkz-inc/tokens` CSS variables to Tailwind utility classes\n- **`ThemeProvider`** — React context provider for light/dark/system theme switching\n- **`useTheme`** — Hook to read and set the current theme\n- **`cn()`** — Utility for merging Tailwind classes without conflicts (`clsx` + `tailwind-merge`)\n- **`global.css`** — Base CSS: imports tokens, Tailwind layers, resets, and `:lang(ar)` font selection (auto-switches to Noto Sans Arabic for Arabic content when `fonts.css` is imported)\n- **`fonts.css`** — Optional self-hosted variable fonts (Inter + Noto Sans Arabic). Import alongside `global.css` when you are NOT using `next/font` or a similar bundler-managed font loader\n\n### Notable utilities surfaced by the preset\n\nThe preset extends Tailwind with semantic utilities derived from `@brkz-inc/tokens`. Highlights:\n\n- **Surfaces:** `bg-background`, `bg-card`, `bg-popover`, `bg-muted`, `bg-secondary`, `bg-primary`\n- **Feedback:** `bg-success`, `bg-warning`, `bg-error`, `bg-info` (light tints, for alerts/banners)\n- **Feedback (strong fill):** `bg-success-strong` + `text-success-strong-foreground` — strong-fill success surface for action buttons (e.g., WhatsApp-style CTAs). Use this pair instead of inlining `var(--brkz-color-success-600)`.\n- **Sidebar:** `bg-sidebar`, `text-sidebar-foreground`, `bg-sidebar-accent`, `text-sidebar-accent-foreground`, `bg-sidebar-primary`, `text-sidebar-primary-foreground`, `border-sidebar-border`, `ring-sidebar-ring`. Intentionally always-dark (matches Vercel/Linear/shadcn pattern); does not invert with the theme.\n- **Borders & rings:** `border-border`, `ring-ring`\n- **Radii:** `rounded-{sm,md,lg,xl,2xl,3xl,full}` mapped to `--brkz-radius-*`\n- **Motion:** `duration-{instant,fast,base,moderate,slow}`, `ease-{standard,decelerate,accelerate,spring}`\n\n## Setup in consuming apps\n\n### 1. Configure Tailwind\n\n```ts\n// tailwind.config.ts\nimport { brkzPreset } from '@brkz-inc/foundations/tailwind'\n\nexport default {\n  presets: [brkzPreset],\n  content: [\n    './src/**/*.{ts,tsx}',\n    './node_modules/@brkz-inc/ui/dist/**/*.js',\n  ],\n}\n```\n\n### 2. Import global styles\n\n```ts\n// app/layout.tsx or _app.tsx\nimport '@brkz-inc/foundations/global.css'\n```\n\n### 3. Wrap with ThemeProvider\n\n```tsx\nimport { ThemeProvider } from '@brkz-inc/foundations'\n\nexport default function Layout({ children }) {\n  return (\n    <ThemeProvider defaultTheme=\"light\">\n      {children}\n    </ThemeProvider>\n  )\n}\n```\n\n### 4. Use the `cn` utility in components\n\n```ts\nimport { cn } from '@brkz-inc/foundations'\n\n// Merges Tailwind classes without conflicts\ncn('px-4 py-2 bg-primary', isActive && 'ring-2', className)\n```\n","readmeFilename":"README.md"}