
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
@css-everything/render
Advanced tools
#### Add script tag to the renderer to your html ```html <script async defer src="https://unpkg.com/@css-everything/render/dist/renderer/index.js"></script> ```
A ui framework where you only write turing complete CSS. No HTML, no JS, no build system.
Disclaimer: Don't use this
<script async defer src="https://unpkg.com/@css-everything/render/dist/renderer/index.js"></script>
The renderer by default uses the body element. You can use :root
to describe the starting point.
Here's a simple counter example:
:root {
--counter: '0';
--cssx-children: div#count button#decr button#incr;
}
#count::after { content: "Count: " var(--counter); }
#incr {
--cssx-on-click: update(':root', --counter, calc(get-var(--counter) + 1));
--cssx-text: "++";
}
#decr {
--cssx-on-click: update(':root', --counter, calc(get-var(--counter) - 1));
--cssx-text: "--";
}
Here are a few live examples for you to try out -
Why not?
What?
You can find the answer with this example.
Yep. Not that you asked, but here's how to calculate factorial of a number.
:root { --cssx-children: div#container; }
#container {
--factorial: func(--n: number)
if(lte(get-var(--n), 1), 1,
calc(
get-var(--n)
* call(--factorial, map(--n: calc(get-var(--n) - 1)))
));
--cssx-text: string("7! = ", call(--factorial, map(--n: 7)));
}
--cssx-disgustingly-set-innerhtml
.js-eval
function. Eg: js-eval("new Date().getSeconds()")
No. In fact, this'll probably break if you try to use it with a css preprocessor.
FAQs
#### Add script tag to the renderer to your html ```html <script async defer src="https://unpkg.com/@css-everything/render/dist/renderer/index.js"></script> ```
We found that @css-everything/render demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.