Socket
Socket
Sign inDemoInstall

@blockle/blocks-v2

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockle/blocks-v2

Blockle blocks


Version published
Weekly downloads
14
increased by16.67%
Maintainers
1
Weekly downloads
 
Created
Source

README

TODO

  • Add a proper README
  • Add vitest

Installation

Vite

import { defineConfig } from 'vite';
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
import react from '@vitejs/plugin-react';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vanillaExtractPlugin(), react()],
  optimizeDeps: {
    exclude: ['@blockle/blocks-v2'],
    include: [
      'react',
      'react-dom',
      'cssesc',
      'escape-string-regexp',
      'css-what',
      'chalk',
      'deepmerge',
    ],
  },
});

CSS Reset

You are free to choose whatever reset template you like, we also provide one <>link<>

import '@blockle/blocks/reset.css';

Usage

Theming

import { createComponentTheme } from '@blockle/blocks-v2/src/components/BlocksProvider/createComponentTheme';
import { style, styleVariants } from '@vanilla-extract/css';

export const button = createComponentTheme('button', ({ atoms, vars }) => ({
  base: style({...}),
  variant: styleVariants({ flat: style({...}), solid: style({...)})
}));

FAQs

Package last updated on 06 Oct 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc