Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs page #3

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

10 changes: 0 additions & 10 deletions .vscode/extensions.json

This file was deleted.

54 changes: 0 additions & 54 deletions .vscode/settings.json

This file was deleted.

22 changes: 22 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>404 | unocss preset ctx</title>
<meta name="description" content="Not Found">
<meta name="generator" content="VitePress v1.5.0">
<link rel="preload stylesheet" href="/unocss-preset-ctx/assets/style.Cf6F9AzD.css" as="style">
<link rel="preload stylesheet" href="/unocss-preset-ctx/vp-icons.css" as="style">

<script type="module" src="/unocss-preset-ctx/assets/app.pfat1Xtb.js"></script>
<link rel="preload" href="/unocss-preset-ctx/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
</head>
<body>
<div id="app"></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"context-color.md\":\"DLpdNPu0\",\"custom-color.md\":\"5YYgdZNa\",\"getting-start.md\":\"BG0uM-ei\",\"index.md\":\"B_O98H_Z\",\"zh_context-color.md\":\"3Z0V9c0X\",\"zh_custom-color.md\":\"B_lO_1Ug\",\"zh_getting-start.md\":\"Bk5hey-l\",\"zh_index.md\":\"CCAKsUOs\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"unocss preset ctx\",\"description\":\"A VitePress site\",\"base\":\"/unocss-preset-ctx/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/nixwai/unocss-preset-ctx\"}]},\"locales\":{\"root\":{\"label\":\"English\",\"lang\":\"en\",\"description\":\"Make it easier to create css context variables and modify element styles.\",\"themeConfig\":{\"nav\":[{\"text\":\"Guide\",\"link\":\"/getting-start\"}],\"sidebar\":[{\"text\":\"Guide\",\"items\":[{\"text\":\"Getting Start\",\"link\":\"/getting-start\"},{\"text\":\"Custom Color\",\"link\":\"/custom-color\"}]},{\"text\":\"Variables\",\"items\":[{\"text\":\"Color\",\"link\":\"/context-color\"}]}]}},\"zh\":{\"label\":\"中文\",\"lang\":\"zh-CN\",\"description\":\"更轻松的创建css上下文变量和修改元素样式\",\"themeConfig\":{\"nav\":[{\"text\":\"指南\",\"link\":\"/zh/getting-start\"}],\"sidebar\":[{\"text\":\"指南\",\"items\":[{\"text\":\"快速开始\",\"link\":\"/zh/getting-start\"},{\"text\":\"定制颜色\",\"link\":\"/zh/custom-color\"}]},{\"text\":\"变量\",\"items\":[{\"text\":\"颜色\",\"link\":\"/zh/context-color\"}]}],\"docFooter\":{\"prev\":\"上一页\",\"next\":\"下一页\"},\"outline\":{\"label\":\"页面导航\"},\"lastUpdated\":{\"text\":\"最后更新于\",\"formatOptions\":{\"dateStyle\":\"short\",\"timeStyle\":\"medium\"}},\"langMenuLabel\":\"多语言\",\"returnToTopLabel\":\"回到顶部\",\"sidebarMenuLabel\":\"菜单\",\"darkModeSwitchLabel\":\"主题\",\"lightModeSwitchTitle\":\"切换到浅色模式\",\"darkModeSwitchTitle\":\"切换到深色模式\"}}},\"scrollOffset\":134,\"cleanUrls\":false}");</script>

</body>
</html>
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

59 changes: 0 additions & 59 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions assets/app.pfat1Xtb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions assets/chunks/base.Bq7X2obZ.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import{_ as a,o as s,c as r,j as n,d as l,p as x,a0 as o,n as u}from"./framework.danP1z9m.js";const _=`<template>\r
<div class="ctx-c-bg_gray flex ctx-c-txt_primary">\r
<div class="px-2 c-ctx-c-txt-700 bg-ctx-c-bg-300">\r
light\r
</div>\r
<div class="c-ctx-c-txt-700 bg-ctx-c-bg-300 px-2 ctx-r-y">\r
dark\r
</div>\r
</div>\r
</template>\r
`,d={},p={class:"ctx-c-bg_gray flex ctx-c-txt_primary"};function v(e,t){return s(),r("div",p,t[0]||(t[0]=[n("div",{class:"px-2 c-ctx-c-txt-700 bg-ctx-c-bg-300"}," light ",-1),n("div",{class:"c-ctx-c-txt-700 bg-ctx-c-bg-300 px-2 ctx-r-y"}," dark ",-1)]))}const V=a(d,[["render",v]]),C=`<script setup lang="ts">\r
import { ref } from 'vue';\r
\r
const v = ref(true);\r
function handleClick() {\r
v.value = !v.value;\r
}\r
<\/script>\r
\r
<template>\r
<div\r
:class="[\r
v ? 'ctx-c-btn_red' : 'ctx-c-btn_blue',\r
v ? 'ctx-c-txt_gray-300' : 'ctx-c-txt_[#ECA9FF]',\r
]"\r
@click="handleClick"\r
>\r
<button class="bg-ctx-c-btn">\r
<span class="c-ctx-c-txt">button</span>\r
</button>\r
<button class="bg-ctx-c-btn-300">\r
<span class="c-ctx-c-txt-550">button</span>\r
</button>\r
<button class="bg-ctx-c-btn-500">\r
<span class="c-ctx-c-txt-500">button</span>\r
</button>\r
<button class="bg-ctx-c-btn-700">\r
<span class="c-ctx-c-txt-450">button</span>\r
</button>\r
<button class="bg-ctx-c-btn-900">\r
<span class="c-ctx-c-txt-400">button</span>\r
</button>\r
</div>\r
</template>\r
\r
<style scoped>\r
button {\r
color: white;\r
padding: 4px 8px;\r
border-radius: 4px;\r
margin: 0 4px;\r
}\r
</style>\r
`,i=l({__name:"base",setup(e){const t=x(!0);function b(){t.value=!t.value}return(m,c)=>(s(),r("div",{class:u([t.value?"ctx-c-btn_red":"ctx-c-btn_blue",t.value?"ctx-c-txt_gray-300":"ctx-c-txt_[#ECA9FF]"]),onClick:b},c[0]||(c[0]=[o('<button class="bg-ctx-c-btn" data-v-e44657d1><span class="c-ctx-c-txt" data-v-e44657d1>button</span></button><button class="bg-ctx-c-btn-300" data-v-e44657d1><span class="c-ctx-c-txt-550" data-v-e44657d1>button</span></button><button class="bg-ctx-c-btn-500" data-v-e44657d1><span class="c-ctx-c-txt-500" data-v-e44657d1>button</span></button><button class="bg-ctx-c-btn-700" data-v-e44657d1><span class="c-ctx-c-txt-450" data-v-e44657d1>button</span></button><button class="bg-ctx-c-btn-900" data-v-e44657d1><span class="c-ctx-c-txt-400" data-v-e44657d1>button</span></button>',5)]),2))}}),W=a(i,[["__scopeId","data-v-e44657d1"]]);export{C as T,W as a,_ as b,V as c};

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions assets/chunks/framework.danP1z9m.js

Large diffs are not rendered by default.

Loading