
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@openzeppelin/contracts-ui-builder-styles
Advanced tools
Centralized styling system for the OpenZeppelin Contracts UI Builder.
This package contains the centralized styling system for the Contracts UI Builder monorepo. It uses Tailwind CSS 4.0 with OKLCH colors and follows the new-york style from shadcn/ui.
styles/
├── src/ # Source stylesheets and utilities
├── global.css # Main CSS file with theme variables and base styles
├── tailwind.config.cjs -> ../../tailwind.config.cjs # Symlink to root config
├── postcss.config.cjs -> ../../postcss.config.cjs # Symlink to root config
├── components.json -> ../../components.json # Symlink to root config
├── package.json # Package configuration
├── tsconfig.json # TypeScript configuration
├── tsup.config.ts # Build configuration
└── README.md # This documentation
global.css - Main CSS file with theme variables and base styles that's shared across all packages.src/utils/ - Utility CSS files and styling functions (if any).This monorepo utilizes a consistent styling approach driven by the consuming application:
@styles package provides the single source of truth for theme variables (colors, spacing, radius) and base styles in global.css.tailwind.config.cjs, postcss.config.cjs, and components.json are used via symlinks in consuming packages (builder, exported apps).packages/builder) or exported applications are responsible for the Tailwind CSS build process.@openzeppelin/contracts-ui-builder-ui and @openzeppelin/contracts-ui-builder-renderer) for utility class usage.global.css, theme variables, and all necessary utility classes used throughout the application and its dependencies.Key Point: Library packages like renderer and ui do not build or ship their own CSS. Styling is entirely managed by the final application build, ensuring consistency and leveraging the shared theme from this @styles package.
The system uses CSS variables for all theme colors and properties. These variables are defined directly with OKLCH values for better readability and maintenance:
:root {
--primary: oklch(0.205 0 0);
--primary-foreground: oklch(0.985 0 0);
/* ... other variables */
}
Form components follow our design system with consistent spacing:
flex flex-col gap-2 - Used for form fields to create proper spacing between label and inputspace-y-4 - Used for spacing between form fields in a groupspace-y-6 - Used for spacing between form sectionsWhen adding new shadcn/ui components, use the root components.json config:
pnpm ui:add button
This ensures all components follow the same unified styling approach.
This package provides centralized styling utilities and components used across all packages in the monorepo. The project uses a symlink-based configuration approach for consistency:
The root directory contains these key configuration files:
Each package that contains UI elements needing Tailwind processing (like builder, renderer, and the new ui package) has symbolic links to these root configurations, ensuring consistent styling and behavior:
packages/builder/tailwind.config.cjs -> ../../tailwind.config.cjs
packages/renderer/tailwind.config.cjs -> ../../tailwind.config.cjs
packages/ui/tailwind.config.cjs -> ../../tailwind.config.cjs
During the export process:
(Add details about any utility functions or components provided by this package if applicable)
FAQs
Centralized styling system for the OpenZeppelin Contracts UI Builder.
The npm package @openzeppelin/contracts-ui-builder-styles receives a total of 1 weekly downloads. As such, @openzeppelin/contracts-ui-builder-styles popularity was classified as not popular.
We found that @openzeppelin/contracts-ui-builder-styles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.