wip: Bunch of changes for v4
From the top of my head (but I'll write this up later): - We keep the info about the designs in the design - We use a new about.json file for this - The auto-generated data.mjs file is no more - Linedrawings we use in the design picker use the front - Linedrawings should respect square aspect ration - Migrated components to use the 'tw-' prefic for tailwind CSS classes to avoid conflicts with docusaurus styles
This commit is contained in:
parent
6b8eea2724
commit
c8808695e5
255 changed files with 3038 additions and 2304 deletions
|
@ -9,7 +9,7 @@ import React from 'react'
|
|||
* @return LineDrawing as JSX
|
||||
*/
|
||||
export const LineDrawingWrapper = ({
|
||||
className = 'w-64', // CSS classes to apply
|
||||
className = 'tw-w-full', // CSS classes to apply
|
||||
viewBox = '0 0 100 100', // SVG viewBox
|
||||
stroke = 1, // Stroke to use
|
||||
children = [], // The actual linedrawing
|
||||
|
@ -23,7 +23,7 @@ export const LineDrawingWrapper = ({
|
|||
stroke="currentColor"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
className={className + ' linedrawing'}
|
||||
className={className + ' linedrawing tw-bg-base-300'}
|
||||
style={style}
|
||||
>
|
||||
{children}
|
||||
|
@ -38,12 +38,12 @@ export const regular = (stroke = 1) => ({ strokeWidth: stroke })
|
|||
/*
|
||||
* Thin stroke-width helper to ensure consistency across linedrawings
|
||||
*/
|
||||
export const thin = (stroke = 1) => ({ strokeWidth: stroke / 2 })
|
||||
export const thin = (stroke = 1) => ({ strokeWidth: stroke / 1.3 })
|
||||
|
||||
/*
|
||||
* Very thin stroke-width helper to ensure consistency across linedrawings
|
||||
*/
|
||||
export const veryThin = (stroke = 1) => ({ strokeWidth: stroke / 3 })
|
||||
export const veryThin = (stroke = 1) => ({ strokeWidth: stroke / 2 })
|
||||
|
||||
/*
|
||||
* Dashed stroke-dasharray helper to ensure consistency across linedrawings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue