Skip to content

Commit 98d4f07

Browse files
committed
docs(uui-css): add link to vite and re-arrange the styles property
1 parent c3663b0 commit 98d4f07

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/uui-css/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ npm i @umbraco-ui/uui-css
4545

4646
## Usage
4747

48-
For a build system like _Vite_, the styling could be included like this if you want to control the styling and variables with the build system:
48+
For a build system like [Vite](https://vitejs.dev/), the styling could be included like this if you want to control the styling and variables with the build system:
4949

5050
```ts
5151
// app.ts
@@ -89,7 +89,7 @@ Using the custom properties:
8989
Full example:
9090

9191
```html
92-
<!DOCTYPE html>
92+
<!doctype html>
9393
<html>
9494
<head>
9595
<link
@@ -146,20 +146,20 @@ import { UUITextStyles } from '@umbraco-ui/uui-css';
146146

147147
@customElement('my-element')
148148
export class MyElement extends LitElement {
149-
static styles = [
150-
UUITextStyles,
151-
css`
152-
/* your css goes here */
153-
`,
154-
];
155-
156149
render() {
157150
return html`
158151
<div class="uui-text">
159152
This is my custom element
160153
</div>
161154
`;
162155
}
156+
157+
static styles = [
158+
UUITextStyles,
159+
css`
160+
/* your css goes here */
161+
`,
162+
];
163163
}
164164

165165
declare global {

0 commit comments

Comments
 (0)