MCPcopy Create free account
hub / github.com/dailydotdev/apps / build

Function build

packages/shared/tailwind/buttons.spec.ts:5–11  ·  view source on GitHub ↗
(classes: string)

Source from the content-addressed store, hash-verified

3import config from '../tailwind.config';
4
5const build = async (classes: string): Promise<string> => {
6 const result = await postcss([
7 tailwindcss({ ...config, content: [{ raw: `<div class="${classes}">` }] }),
8 ]).process('@tailwind components;', { from: undefined });
9
10 return result.css;
11};
12
13describe('button plugins', () => {
14 it('keeps the colored ButtonV2 values its template strings build', async () => {

Callers 1

buttons.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected