diff --git a/examples/esm.sh/index.html b/examples/esm.sh/index.html index 57ece60c4..86bd9627f 100644 --- a/examples/esm.sh/index.html +++ b/examples/esm.sh/index.html @@ -6,9 +6,9 @@ - + Genernal Installation - Master CSS
Getting Started

Get started with Master CSS

Master CSS is a markup-driven CSS language with smart rules allowing you to write familiar CSS using concise syntax within HTML.

The easiest way to use Master CSS from scratch is to initialize the runtime engine directly in the application's entry file.

Installation [sr-only]

-

Install Master CSS

Install Master CSS into your project via package managers.

npm install @master/css@rc

Initialize configuration file

Run npx mcss init to create a configuration file master.css.js.

npx mcss init

Set up CSS runtime engine

Import and initialize the runtime engine in the entry file, such as main.js:

import { initRuntime } from '@master/css'
import config from './master.css'
initRuntime(config)

Start using Master CSS

Now style your first element using Master CSS syntax!

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="/main.js"></script>
</head>
<body>
<h1 class="font:40 font:heavy italic m:50 text:center">Hello World</h1>
</body>
</html>

Open your browser to watch the changes.

localhost:8080

Hello World

-

Get stuck? Check out our web framework or build tool guides for better starting points and recommendations.

NEXT
Language Service for Master CSS

Enhanced Master CSS development experience, including syntax highlighting, code completion, syntax rule preview, and more.

MIT License © Aoyue Design LLC.
\ No newline at end of file +

Install Master CSS

Install Master CSS into your project via package managers.

npm install @master/css-runtime@rc

Initialize configuration file

Run npx mcss init to create a configuration file master.css.js.

npx mcss init

Set up CSS runtime engine

Import and initialize the runtime engine in the entry file, such as main.js:

import { initCSSRuntime } from '@master/css'
import config from './master.css'
initCSSRuntime(config)

Start using Master CSS

Now style your first element using Master CSS syntax!

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="/main.js"></script>
</head>
<body>
<h1 class="font:40 font:heavy italic m:50 text:center">Hello World</h1>
</body>
</html>

Open your browser to watch the changes.

localhost:8080

Hello World

+

Get stuck? Check out our web framework or build tool guides for better starting points and recommendations.

NEXT
Language Service for Master CSS

Enhanced Master CSS development experience, including syntax highlighting, code completion, syntax rule preview, and more.

MIT License © Aoyue Design LLC.
Issue on this page
\ No newline at end of file diff --git a/website/app/[locale]/(root)/docs/installation/angular/content.mdx b/website/app/[locale]/(root)/docs/installation/angular/content.mdx index 8819170aa..a2eee4c8c 100644 --- a/website/app/[locale]/(root)/docs/installation/angular/content.mdx +++ b/website/app/[locale]/(root)/docs/installation/angular/content.mdx @@ -20,7 +20,7 @@ import ProgressiveRenderingIntro from '../../rendering-modes/components/Progress ```bash name=Terminal npx degit master-co/css/examples/angular-with-progressive-rendering __my-project__ cd __my-project__ - npm install @master/css@rc @master/css-server@rc + npm install @master/css-runtime@rc @master/css-server@rc npm install npm run dev ``` @@ -53,7 +53,7 @@ import ProgressiveRenderingIntro from '../../rendering-modes/components/Progress ```install - **@master/css@rc** **@master/css-server@rc** + **@master/css-runtime@rc** **@master/css-server@rc** ``` @@ -79,10 +79,10 @@ import ProgressiveRenderingIntro from '../../rendering-modes/components/Progress ```ts name=src/main.ts import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; - +import { initRuntime } from '@master/css'; + +import { initCSSRuntime } from '@master/css-runtime'; +import config from '../master.css'; - +initRuntime(config); + +initCSSRuntime(config); platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); diff --git a/website/app/[locale]/(root)/docs/installation/angular/runtime-rendering/content.mdx b/website/app/[locale]/(root)/docs/installation/angular/runtime-rendering/content.mdx index 8582b52d4..e16f73b5d 100644 --- a/website/app/[locale]/(root)/docs/installation/angular/runtime-rendering/content.mdx +++ b/website/app/[locale]/(root)/docs/installation/angular/runtime-rendering/content.mdx @@ -22,7 +22,7 @@ import RuntimeRenderingIntro from '../../../rendering-modes/components/RuntimeRe ```bash name=Terminal npx degit master-co/css/examples/angular-with-runtime-rendering __my-project__ cd __my-project__ - npm install @master/css@rc + npm install @master/css-runtime@rc npm install npm run dev ``` @@ -63,7 +63,7 @@ import RuntimeRenderingIntro from '../../../rendering-modes/components/RuntimeRe ```install - **@master/css@rc** + **@master/css-runtime@rc** ``` @@ -87,10 +87,10 @@ import RuntimeRenderingIntro from '../../../rendering-modes/components/RuntimeRe ```ts name=src/main.ts import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; - + import { initRuntime } from '@master/css'; + + import { initCSSRuntime } from '@master/css-runtime'; + import config from '../master.css'; - + initRuntime(config); + + initCSSRuntime(config); platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); diff --git a/website/app/[locale]/(root)/docs/installation/angular/static-extraction/content.mdx b/website/app/[locale]/(root)/docs/installation/angular/static-extraction/content.mdx index 8ff919fa4..754847dab 100644 --- a/website/app/[locale]/(root)/docs/installation/angular/static-extraction/content.mdx +++ b/website/app/[locale]/(root)/docs/installation/angular/static-extraction/content.mdx @@ -21,7 +21,7 @@ import StaticExtractionIntro from '../../../rendering-modes/components/StaticExt ```bash name=Terminal npx degit master-co/css/examples/angular-with-static-extraction __my-project__ cd __my-project__ - npm install @master/css@rc + npm install @master/css-runtime@rc npm install npm run dev ``` diff --git a/website/app/[locale]/(root)/docs/installation/astro/content.mdx b/website/app/[locale]/(root)/docs/installation/astro/content.mdx index 6b508dc25..56e97dcbe 100644 --- a/website/app/[locale]/(root)/docs/installation/astro/content.mdx +++ b/website/app/[locale]/(root)/docs/installation/astro/content.mdx @@ -22,7 +22,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende ```bash name=Terminal npx degit master-co/css/examples/astro-with-runtime-rendering __my-project__ cd __my-project__ - npm install @master/css@rc + npm install @master/css-runtime@rc npm install npm run dev ``` @@ -55,7 +55,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende ```install - **@master/css@rc** + **@master/css-runtime@rc** ``` @@ -84,10 +84,10 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende … + … diff --git a/website/app/[locale]/(root)/docs/installation/blazor/content.mdx b/website/app/[locale]/(root)/docs/installation/blazor/content.mdx index e59668bbd..205aa8788 100644 --- a/website/app/[locale]/(root)/docs/installation/blazor/content.mdx +++ b/website/app/[locale]/(root)/docs/installation/blazor/content.mdx @@ -22,7 +22,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende ```bash name=Terminal npx degit master-co/css/examples/blazor-with-runtime-rendering __my-project__ cd __my-project__ - npm install @master/css@rc + npm install @master/css-runtime@rc npm install npm run dev ``` @@ -103,7 +103,7 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende ```install - **@master/css@rc** + **@master/css-runtime@rc** ``` @@ -126,10 +126,10 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende ```js name=npm_packages/src/index.js … - + import { initRuntime } from '@master/css'; + + import { initCSSRuntime } from '@master/css-runtime'; + import config from 'master.css'; - + initRuntime(config) + + initCSSRuntime(config) ``` diff --git a/website/app/[locale]/(root)/docs/installation/esm-sh/content.mdx b/website/app/[locale]/(root)/docs/installation/esm-sh/content.mdx index 3250ac1a7..ab98ee0af 100644 --- a/website/app/[locale]/(root)/docs/installation/esm-sh/content.mdx +++ b/website/app/[locale]/(root)/docs/installation/esm-sh/content.mdx @@ -14,10 +14,10 @@ import RuntimeRenderingIntro from '../../rendering-modes/components/RuntimeRende - +