Vendor stylesheets load in Tailwind's base layer through a vendor.css shim, so our overrides win outright; the editor's drag placeholder takes the 12% primary
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
import { useEffect, useLayoutEffect, useRef, useState } from "react"
|
import { useEffect, useLayoutEffect, useRef, useState } from "react"
|
||||||
import uPlot from "uplot"
|
import uPlot from "uplot"
|
||||||
import "uplot/dist/uPlot.min.css"
|
|
||||||
|
|
||||||
// After uPlot's own sheet, and beside this component rather than in the
|
// Beside this component rather than in the dashboard chunk: a chart on Health
|
||||||
// dashboard chunk: a chart on Health or Home is styled without a dashboard
|
// or Home is styled without a dashboard having been visited first. uPlot's own
|
||||||
// having been visited first.
|
// sheet comes in through `vendor.css`.
|
||||||
import "./uplot.css"
|
import "./uplot.css"
|
||||||
|
|
||||||
import type { HistoryPoint } from "@/client"
|
import type { HistoryPoint } from "@/client"
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import {
|
|||||||
type Position,
|
type Position,
|
||||||
setTransform,
|
setTransform,
|
||||||
} from "react-grid-layout"
|
} from "react-grid-layout"
|
||||||
import "react-grid-layout/css/styles.css"
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type ApiError,
|
type ApiError,
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import {
|
|||||||
ReactFlowProvider,
|
ReactFlowProvider,
|
||||||
useReactFlow,
|
useReactFlow,
|
||||||
} from "@xyflow/react"
|
} from "@xyflow/react"
|
||||||
import "@xyflow/react/dist/style.css"
|
|
||||||
import {
|
import {
|
||||||
forceCollide,
|
forceCollide,
|
||||||
forceLink,
|
forceLink,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
import {
|
||||||
|
useMutation,
|
||||||
|
useQuery,
|
||||||
|
useQueryClient,
|
||||||
|
useSuspenseQuery,
|
||||||
|
} from "@tanstack/react-query"
|
||||||
|
import { useNavigate } from "@tanstack/react-router"
|
||||||
import {
|
import {
|
||||||
Background,
|
Background,
|
||||||
BackgroundVariant,
|
BackgroundVariant,
|
||||||
@@ -13,14 +20,6 @@ import {
|
|||||||
useStore,
|
useStore,
|
||||||
useUpdateNodeInternals,
|
useUpdateNodeInternals,
|
||||||
} from "@xyflow/react"
|
} from "@xyflow/react"
|
||||||
import "@xyflow/react/dist/style.css"
|
|
||||||
import {
|
|
||||||
useMutation,
|
|
||||||
useQuery,
|
|
||||||
useQueryClient,
|
|
||||||
useSuspenseQuery,
|
|
||||||
} from "@tanstack/react-query"
|
|
||||||
import { useNavigate } from "@tanstack/react-router"
|
|
||||||
import { Workflow } from "lucide-react"
|
import { Workflow } from "lucide-react"
|
||||||
import { motion } from "motion/react"
|
import { motion } from "motion/react"
|
||||||
import { useCallback, useEffect, useMemo, useRef, useState } from "react"
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
@import "tw-animate-css";
|
@import "tw-animate-css";
|
||||||
|
@import "./vendor.css";
|
||||||
|
|
||||||
@custom-variant dark (&:is(.dark *));
|
@custom-variant dark (&:is(.dark *));
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* The libraries' own stylesheets, in Tailwind's `base` layer.
|
||||||
|
*
|
||||||
|
* Imported from TS they were unlayered, so our overrides beat them only by
|
||||||
|
* loading later, and lost wherever a lazy chunk brought the library's sheet in
|
||||||
|
* after ours. In `base` every sheet of ours and every utility wins over them.
|
||||||
|
*/
|
||||||
|
@import "@xyflow/react/dist/style.css" layer(base);
|
||||||
|
@import "uplot/dist/uPlot.min.css" layer(base);
|
||||||
|
@import "react-grid-layout/css/styles.css" layer(base);
|
||||||
Reference in New Issue
Block a user