
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
lucid-ui
Advanced tools
A UI component library from Xandr.
Lucid can be installed with npm
npm install --save lucid-ui
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'lucid-ui';
ReactDOM.render(<Button>Hello World</Button>, mountNode);
Lucid uses less
for its stylesheets. If you use less
, you can include the
styles like so:
@import "node_modules/lucid-ui/src/index.less";
If you don't use less
, you can use the precompiled css file
node_modules/lucid-ui/dist/lucid.css
.
There are some very rare situations where you might need to customize the
prefix for all the css class names emitted by the library and less
. If you
find yourself in that unenviable position, you can do the following:
In your webpack config use the DefinePlugin
to specify
LUCID_CSS_NAMESPACE
like so:
new webpack.DefinePlugin({
LUCID_CSS_NAMESPACE: "'something-custom'",
});
When you render the less
, make sure to set the prefix
variable to the
same thing you set in in your webpack config. E.g.
lessc node_modules/lucid-ui/src/index.less --modify-var='prefix=something-custom'
lucid-ui
has several React peer dependencies. This means your application
is responsible for declaring dependencies on compatible versions. Currently
we support React 15 and 16.
Example package.json:
{
"dependencies": {
"lucid-ui": "^5.0.0",
"react": "^16.0.0",
"react-dom": "^16.0.0"
}
}
To contribute to lucid, please see CONTRIBUTING.md
.
FAQs
A UI component library from Xandr.
The npm package lucid-ui receives a total of 1,036 weekly downloads. As such, lucid-ui popularity was classified as popular.
We found that lucid-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.