
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@n8d/htwoo-react
Advanced tools
hTWOo React is a ReactJS implementation of hTWOo Core which is a Fluent Design Framework purely in HTML and CSS
HTWOO ReactJS is an open source alternative for Microsoft's various implementations of their Fluent UI Web Design system. This library consists of flexible ReactJS components based on the HTWOO UI library. For a complete listing please see HTWOO Core Style Guide.
Note: This component library is currently under development and will most likely continue to make improvements that could likely bring about breaking changes. Please feel free to submit your enhancement ideas and feedback to the issues list so that we can try to address them.
Add a reference to the base.css file in your solutions root .scss file:
:global {
@import 'node_modules/@n8d/htwoo-react/lib/base';
}
To initilize the basic SVG icons add the following line to your components main ts file's onInit method:
@override
public async onInit(): Promise<void> {
// Initialize Icons Symbol Set
await symset.initSymbols();
}
Alternately you can load your own icon symbol set by passing the path into the initSymbols method:
@override
public async onInit(): Promise<void> {
// Initialize Icons Symbol Set with Custom Symbol File
const symbolSetFile = require("./images/icons.svg");
await symset.initSymbols(symbolSetFile);
}
A SVG symbol file will look similar to the following:
<svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<symbol id="icon-arrow-left" viewBox="0 0 32 32">
<path d="M22.547 31.953l-15.969-15.953 15.969-15.953 1.406 1.406-14.531 14.547 14.531 14.547-1.406 1.406z"></path>
</symbol>
</defs>
</svg>
(Optional) Add theme support to your SPFx project
a. Modify your components manifest and add supportsThemeVariants
which allows any of the hTWOo components to render properly in colored SharePoint section.
{
//...
"supportsThemeVariants": true,
// ...
}
b. Add the following helper code to your components main ts file's onInit method which initializes the CSS Variables to support themes. Make sure to add the import and the private _spfxThemes variable:
import SPFxThemes, { ISPFxThemes } from '@n8d/htwoo-react';
private _spfxThemes: ISPFxThemes = new SPFxThemes();
@override
public async onInit(): Promise<void> {
// Consume the new ThemeProvider service
const themeProvider = this.context.serviceScope.consume(ThemeProvider.serviceKey);
this._spfxThemes.initThemeHandler(this.domElement, themeProvider);
}
Import the HTWOO component that you want to use into your own projects components. All components are selectively importable from the /lib/ folder. We will be working on fully documenting all components and their implementation soon.
hTWOo style guide, documentation and building platform is based on patternlab.io. To allow the most flexible implementation of designs and design pattern it follows the Atomic Design Methodology coined by Brad Frost around 2012 / 2013.
We're tasked with making interfaces for more users in more contexts using more browsers on more devices with more screen sizes and more capabilities than ever before. That's a daunting task indeed. Thankfully, design systems are here to help. - Brad Frost
Follow us on Twitter @htwooui.
Maintainer: Stefan Bauer (N8D), Julie Turner
Contributor: You ❤️
FAQs
hTWOo React is a ReactJS implementation of hTWOo Core which is a Fluent Design Framework purely in HTML and CSS
The npm package @n8d/htwoo-react receives a total of 59 weekly downloads. As such, @n8d/htwoo-react popularity was classified as not popular.
We found that @n8d/htwoo-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.