Skip to content

Commit

Permalink
Clean up tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
dabbott committed Jan 13, 2024
1 parent d65ab28 commit 73d186c
Show file tree
Hide file tree
Showing 9 changed files with 289 additions and 360 deletions.
4 changes: 2 additions & 2 deletions packages/noya-compiler/src/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
renderResolvedNode,
} from 'noya-component';
import { loadDesignSystem } from 'noya-module-loader';
import { parametersToTailwindStyle, tailwindColors } from 'noya-tailwind';
import { classNamesToStyle, tailwindColors } from 'noya-tailwind';
import React, {
CSSProperties,
ReactElement,
Expand Down Expand Up @@ -900,7 +900,7 @@ function compileCSS({

simpleElementToClassName.set(simple, className);

const convertedFromTailwind = parametersToTailwindStyle(
const convertedFromTailwind = classNamesToStyle(
(simple.props.className as string | undefined)?.split(' '),
);

Expand Down
4 changes: 2 additions & 2 deletions packages/noya-component/src/renderResolvedNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import {
} from 'noya-component';
import {
BreakpointKey,
classNamesToStyle,
extractTailwindClassesByBreakpoint,
extractTailwindClassesByColorScheme,
filterTailwindClassesByLastInGroup,
matchBreakpoint,
parametersToTailwindStyle,
tailwindColors,
} from 'noya-tailwind';
import React, { ReactNode } from 'react';
Expand Down Expand Up @@ -103,7 +103,7 @@ export function createNoyaDSRenderingContext({
classNamesByBreakpoint,
);

const style = parametersToTailwindStyle(classNamesForCurrentPage);
const style = classNamesToStyle(classNamesForCurrentPage);

const stylingProps = {
// Include all classnames regardless of breakpoint/colorScheme
Expand Down
Loading

0 comments on commit 73d186c

Please sign in to comment.