Latest Posts on xLog
- May 18 - 为什么是 ESLint
- Mar 19 - xLog SDK 的一些进展
- Feb 15 - 我如何开始写一个 TypeScript 库
- Jan 04 - 实现一个满意的深色模式切换按钮
- Sep 30 - 写在 24 岁之前
Thanks to the following people for supporting my open-source work! 💖
Highlight valid Tailwind CSS class names in your code.
License: MIT License
Latest Posts on xLog
Thanks to the following people for supporting my open-source work! 💖
Detected Tailwind CSS version: 3.2.4
Tailwind CSS config file found at /Users/hyoban/f/socialify/tailwind.config.js
Updating Tailwind CSS context
Error updating Tailwind CSS context: Cannot find module '/Users/hyoban/f/socialify/node_modules/tailwindcss/lib/lib/load-config.js'
Require stack:
- /Users/hyoban/.vscode/extensions/hyoban.tailwindcss-classname-highlight-0.4.0/dist/index.js
- /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js
- /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-amd.js
- /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-fork.js
-
Check context failed: Tailwind CSS context not found
No response
System:
OS: macOS 14.3.1
CPU: (8) arm64 Apple M1 Pro
Memory: 1.26 GB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.1 - ~/Library/Caches/fnm_multishells/85003_1710297271039/bin/node
Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/85003_1710297271039/bin/yarn
npm: 10.2.4 - ~/Library/Caches/fnm_multishells/85003_1710297271039/bin/npm
pnpm: 8.4.0 - ~/Library/Caches/fnm_multishells/85003_1710297271039/bin/pnpm
bun: 1.0.29 - ~/.bun/bin/bun
Browsers:
Chrome: 122.0.6261.112
Safari: 17.3.1
yarn
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
eslint-config-hyoban
, release-it-pnpm
, tailwindcss
).github/workflows/ci.yml
actions/checkout v4
actions/setup-node v4
actions/checkout v4
actions/setup-node v4
actions/checkout v4
actions/setup-node v4
.github/workflows/format.yml
actions/checkout v4
actions/setup-node v4
stefanzweifel/git-auto-commit-action v5
.github/workflows/release.yml
actions/checkout v4
actions/setup-node v4
package.json
@types/micromatch ^4.0.6
@vscode/vsce ^2.24.0
eslint ^8.57.0
eslint-config-hyoban ^0.2.13
fast-glob ^3.3.2
ignore ^5.3.1
jiti ^1.21.0
local-pkg ^0.5.0
micromatch ^4.0.5
release-it ^17.1.1
release-it-pnpm 4.1.6
sucrase ^3.35.0
tsup ^8.0.2
typescript ^5.4.3
vitest ^1.4.0
pnpm 8.15.5
playground/package.json
next ^14.1.4
react ^18.2.0
react-dom ^18.2.0
autoprefixer ^10.4.19
postcss ^8.4.38
tailwindcss ^3.4.1
Currently, this extension does not support multi tailwind projects in one workspace
Provide a tailwindcss-classname-highlight.root
configuration, which can take a string array. Use different config for different project
No response
No response
I don't need to see that contents
in aria-label="Table of contents"
is a valid TailwindCSS class.
Ideally this would only check for class names inside of class
or className
attributes. Alternatively, there could be a configuration option to set which attributes to check.
No response
No response
unexpected underline outside jsx
// tailwind.config.js
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {},
},
plugins: [],
}
const [isLoading] = useState(false)
useEffect(() => {
document.documentElement.style.overflow = isLoading ? 'hidden' : 'auto'
return () => {
document.documentElement.style.overflow = 'auto'
}
}, [isLoading])
After disabling the extension, the underline will disapper.
see above
System:
OS: macOS 14.5
CPU: (10) arm64 Apple M1 Pro
Memory: 123.30 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.2 - ~/Library/Caches/fnm_multishells/58748_1715304072290/bin/node
npm: 10.5.2 - ~/Library/Caches/fnm_multishells/58748_1715304072290/bin/npm
pnpm: 9.1.0 - ~/Library/Caches/fnm_multishells/58748_1715304072290/bin/pnpm
bun: 1.1.7 - ~/.bun/bin/bun
Browsers:
Chrome: 124.0.6367.119
Safari: 17.5
pnpm
Generally in business, there are many variables for className, and these are not enough to cover them all.
It might be better if you can use the className atom matching rules of the tailwindcss server.
If not, it is recommended to open up custom regular matching.
Thank you.
Ref: https://github.com/hyoban/tailwindcss-classname-highlight/blob/main/src/utils.ts#L6
I extend a color in the tailwind.config.js
and use it in my project. When previewing, it displays the color in RGB, the tailwindcss generated results. When developing, I want to check the color to match the figma which produces the HEX instead of RGB.
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
"my-color": "#0070E0"
}
},
},
plugins: [],
}
Could it add some helper comments like above?
No response
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.