KnowCSS, the NoCSS Engine (@knowcss) header
KnowCSS, the NoCSS Engine (@knowcss) profile picture

Introducing KnowCSS, the NoCSS Engine. Never create a CSS file again. div know=“^sm{hover((font-size-anything))}” Created by @jaydoublay to make life easier.

Joined June 2021
In my ongoing choice to build my own React/jQuery library, today I've recreated React's useEffect in 4 lines of code -> declare object, find all effects to append, wait for DOM updates, trigger effects. That brings my library to 23.7kb and a total of 8.76ms added to page load.
1
50
var effectChain = {}; wb.onInclude = (include, id) => "effect" in include && (effectChain[id] = include.effect); wb.on('dom', () => this.effect()); wb.effect = () => this.functions(effectChain);
22
How do you remember the order of padding: 10px 10px 10px 10px I always think north east south west I also heard someone picture it like a clock
142
23
20
273
47,013
TRBL pronounced “terrible”.
1
14
Any tailwind wizard knows how to tackle this without this monster of a string?
76
14
11
309
107,893
It's meant to do other things like easy grouping of classes like hover{12 full} is .a:hover{font-size:12px; width:100%} .. or ^{} to target parents, ^2{} to go up 2 levels, etc. You define mixins and components and variables on the fly.. end goal is to solve all css shortcomings.
1
9
Replying to @_dggp @bedesqui
It's a javascript that converts know="x" to x{} in browser. It takes about ~10-20ms to run in browser for a standard size page. With it, you can run a site without a .css file... if you inject new html into the page, it creates the new css on the fly too.
1
10
Creating my own version of jQuery/React has saved me countless hours & headaches. I am tempted to release my library for public usage but I hate spending time on user guide documentation! #javascript #dev #jquery #react
2
4
510
How do you center a div? KnowCSS can center with a single class on the parent element which sets the parent display property and horizontally/vertically centers all children automatically. #css #div #html #center
1
49
Sometimes JavaScript just doesn't make any sense to me. 🤔 In JavaScript: ✅ 1+"1"=11 🤔 ✅ 1- "0"=0 🤔 Could someone explain that lack of logic to me? #java #javascript #css #html #git #github #devops
52
14
3
117
18,324
For situations like these, parseInt() or parseFloat() are ideal to ensure everything is numeric before any math... it gets even more absurd if you mix addition and subtraction in a single operation: 1+"1"+1-1 = 110
1
22
With KnowCSS, reverting 1 or more properties is a breeze. Prefix or suffix any property with initial/inherit/revert/unset or group multiple together by {}. Keep your code simple, clean, organized, and readable.
21
What was your favorite video game when you were younger?
1,902
143
237
2,271
933,573
Pepper II for Colecovision.
15
Movies I love watching every December, feel free to add on or suggest something I’ve missed:
8
2
18
Replying to @bryhutch
Left a small (sinking ship) local company that refused to modernize after 21 years there to go fully remote at a global company with a small, concise tech team.
1
What helps you stay productive while working from home?
66
2
2
85
Monster Energy Drink, Viter Energy, Snacks, Spotify, and a low maintenance 3yr old.
1
The other day, I injected hidden input tags into <head>, pushing all meta tags into <body> and, from that, I wrote a function to never allow that to happen again… broken code leads to more stability. Clean code != progress 😆
Brainstorming a way to simplify complex gradients…
Anyone else assign words/phrases to symbols to simplify reading code in your head? Arrow functions symbol => is “goes to” in my head. (a)=>a+1 “a goes to a plus one”
1
The best part of building an all-inclusive css replacement is discovering all the finer nuances of css itself.
Rewriting a set of functions taking 10-15ms with large data sets to take 5-10ms.. this is important.
1
What age did you start coding? I’ll start: 33
841
100
77
1,591
Casually at age 3 in 1982: BASIC on early computers by copying code from manuals to draw shapes on screen or run math programs. More realistically at age 14 in 1993 and haven’t stopped since.
2